thanks, Keith.

      > -----Original Message-----
      > From: Keith Visco [mailto:[EMAIL PROTECTED]
      > Sent: Wednesday, June 11, 2003 4:17 PM
      > To: [EMAIL PROTECTED]
      > Subject: Re: [castor-dev] dealing with non-schema 
      > date/time formats
      > 
      > 
      > 
      > I would probably opt for the GeneralizedFieldHandler 
      > myself and use
      > auto-complete so that I could keep using introspection 
      > everywhere except
      > for the specific date fields.
      > 
      > <class name="Foo" auto-complete="true">
      >    <field name="date" type="..." handler="MyCustomDateHandler"/>
      > </class>
      > 
      > 
      > I suppose another option is to write the 
      > XMLClassDescriptor and simply
      > associate your date class with the descriptor in the
      > ClassDescriptorResolver.
      > 
      > --Keith
      > 
      > "Ostermueller, Erik" wrote:
      > > 
      > > Hello all,
      > > 
      > > We need to marshal/unmarshal some proprietary 
      > date/time formats.
      > > Here are my options, as I see 'em:
      > > 
      > > 1) pre-process the xml before passed to castor unmshalling,
      > > post-process after marshalling.  Very slow. :-(
      > > 2) Add a SAX DocumentHandler (or is it 
      > ContentHandler?) to the chain.
      > > It would convert from proprietary format to schema 
      > format before unmarshal and
      > > vice-versa after the marshal.
      > > 3) Use the hot new GeneralizedFieldHandler.
      > > **** Is there a way to do this w/o using a mapping file? ****
      > > -- b/c we don't have the need for mapping file yet.
      > > 4) Create a new date/time handler (hack up the source).
      > > 
      > > Have I missed anything?
      > > Any suggestions?
      > > 
      > > Thanks,
      > > 
      > > Erik
      > > 
      > > -----------------------------------------------------------
      > > 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