Ahhhhh!

That's what I was missing! I had them in a different package.

Is there anything "special" that needs to be considered about naming? For
instance, if I have a class "Test", *MUST* the descriptor be named
"TestDescriptor"? Or will Castor simply look up every class (or subclass
thereof) in the same package that implements XMLClassDescriptor to try to
find a match?

Thanks again!





> -----Original Message-----
> From: Keith Visco [mailto:[EMAIL PROTECTED]
> Sent: June 5, 2004 4:37
> To: [EMAIL PROTECTED]
> Subject: Re: [castor-user] [XML] Using Class Descriptors instead of XML
> Mapping
>
>
>
>
> Hi David,
>
> Just compile them! :-)
>
> When you marshal and unmarshal generated sources, Castor looks for the
> descriptors automatically in the same package as the class being
> marshalled or unmarshalled.
>
> --Keith
>
>
> David Leangen wrote:
> >
> > Keith,
> >
> > Thank you very much for your quick reply!
> >
> > Actually, what I'm having trouble figuring out is how to
> actually use the
> > descriptors once they're generated. I know there must be
> something simple,
> > but I just haven't seen what it is yet.
> >
> > In the example you mention, it generates several Java classes along with
> > their descriptors. How would I actually use these in
> conjunction with the
> > API?
> >
> > Thanks a lot!
> >
> > Dave
> >
> > > -----Original Message-----
> > > From: Keith Visco [mailto:[EMAIL PROTECTED]
> > > Sent: June 4, 2004 17:45
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [castor-user] [XML] Using Class Descriptors
> instead of XML
> > > Mapping
> > >
> > >
> > >
> > >
> > > David,
> > >
> > > The SourceGenerator
> (org.exolab.castor.builder.SourceGenerator) requires
> > > an XML Schema definition file (.xsd) in order to create java
> classes and
> > > descriptors.
> > >
> > > --Keith
> > >
> > >
> > > David Leangen wrote:
> > > >
> > > > In the Castor doc (especially at
> > > > http://www.castor.org/xml-framework.html#Class-Descriptors), it
> > > mentions the
> > > > following:
> > > >
> > > >   Compile-Time Descriptors
> > > >
> > > >   To use "compile-time" class descriptors, one can
> > > >   either implement the org.exolab.castor.xml.XMLClassDescriptor
> > > >   interface for each class which needs to be "described", or
> > > >   have the Source Code Generator create the proper descriptors.
> > > >
> > > > I have been trying to do just that, but with no success. I have
> > > look through
> > > > the docs and the source code... but there is obviously
> > > something that I'm
> > > > not "getting" here...
> > > >
> > > > Can anybody point me in the right direction?
> > > >
> > > > Thanks!
> > > >
> > > > -----------------------------------------------------------
> > > > If you wish to unsubscribe from this mailing, send mail to
> > > > [EMAIL PROTECTED] with a subject of:
> > > >         unsubscribe castor-user
> > >
> > >
> > >
> > > -----------------------------------------------------------
> > > If you wish to unsubscribe from this mailing, send mail to
> > > [EMAIL PROTECTED] with a subject of:
> > >         unsubscribe castor-user
> >
> > -----------------------------------------------------------
> > If you wish to unsubscribe from this mailing, send mail to
> > [EMAIL PROTECTED] with a subject of:
> >         unsubscribe castor-user
>
>
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-user



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

Reply via email to