I am sub-classing a castor generated class and adding my code there, so
that I don't have to change
generated classes every time I re-generated them. The problem is that
it does not marshall it to XML correctly, because Descriptor class now
has a different name.
For example if B subclasses A where A is a generated class, and B is a
class with additional logic,
when I call a.marshall() it will marshall correctly because there is a
ADescriptor.class, but
b.marshall() will marshall with introspection, and produce unwanted
results.
One solution is copy ADescriptor.class into BDescriptor.class, but is
does not seem like a very good
solutions. Any other suggestions?
thanks for oyur help,
- Ilya
> -----Original Message-----
> From: Steve Vaughan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 07, 2001 10:47 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [castor-dev] StringValidator and whitespace "collapse"
>
>
> You'll also want to update the "normalize" method.
> Currently, it throws an
> exception if the value ends with a single character (e.g.
> "hello a" results
> in an Exception, but "hello ab" is ok).
>
> -Steve
>
> On Tuesday 07 August 2001 13:04, Arnaud Blandin wrote:
> > Hi Steve,
> >
> > You're right the code needs to be plugged to the
> marshalling framework.
> > Thanks for reporting it,
> >
> > Arnaud
> >
> > > -----Original Message-----
> > > From: Steve Vaughan [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, August 07, 2001 4:28 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [castor-dev] StringValidator and whitespace "collapse"
> > >
> > >
> > > I noticed that the SourceGenerator creates a
> StringValidator when the
> > > "collapse" facet is provided in a schema. Although there
> is code within
> > > the StringValidator which collapses the whitespace within
> the string, I
> > > don't see any place where this new value is saved. If a field's
> > > whitespace is supposed to be collapsed, should the
> unmarshalled value be
> > > collapsed or is this just intended to be used during the
> validation
> > > phase?
> > >
> > > -Steve
> > >
> > > _________________________________________________________
> > > Do You Yahoo!?
> > > Get your free @yahoo.com address at http://mail.yahoo.com
> > >
> > > -----------------------------------------------------------
> > > 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
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
> -----------------------------------------------------------
> 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