this sounds interesting, what is the "binding file" used for ?

-----Original Message-----
From: Davis, Richard [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 03, 2001 2:23 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Source Generator


Keith,

Do you have an idea of when the binding file that would be used in
conjunction with SourceGenerator would be available?

Thanks for taking the time to answer my questions.

rich

-----Original Message-----
From: Keith Visco [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 30, 2001 3:57 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Source Generator





"Davis, Richard" wrote:
> 
> Thanks Keith,
> 
> I got it working as you explained. I had to set
> org.exolab.castor.builder.javaclassmapping=type so SourceGenerator would
not
> try to generate the class I refer to in the extra schema.
> 

hmmm, I'll have to look into that. javaclassmapping=element should work
too. A class should get created by for the element, using the element's
name, and this class should simple extend the class from the extra
schema. Of course if the element and the complexType have the same name
then maybe it appears that it was getting created for the complexType.

> I'm pretty sure I know the answer to this question but just to verify I'm
> asking. Is there a way to specify an element that will be represented as a
> property on the resulting bean to not have (one of) a setter or getter? (I
> know this probably would break marshalling/unmarshalling)

We are working on a binding file that will be used in conjunction with
the source generator to have greater control over the generated source.

The mapping framework does allow for only specifying (one of) a getter
or a setter. It doesn't break anything if there is no setter, the
unmarshaller simply ignores the value.
If there is no getter however, the value will not appear in your XML
Schema, and potentially break validation, but if there is no validation
turned on, or the field is marked as optional, then it'll work.


--Keith

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to