Hi Scott,
You can extend GeneralizedFieldHandler to do the checking for you, and
simply specify this field handler for the specific field(s) in the
mapping file.
--Keith
[EMAIL PROTECTED] wrote:
>
> Hi All,
>
> There was a thread on this list about a year ago regarding CORBA Enums
> which was never really answered, so I'd like to bring it back up.
>
> I have a class (a CORBA Enumeration) which has several getters, only one of
> which is valid per object. There are other getters on the object that tell
> you which getter is valid.
>
> If an invalid getter is called, a RuntimeException is thrown. Is there any
> way I can set up my mapping.xml file to
>
> a) only call the proper getter when generating XML
> -- and --
> b) only call the proper setter when creating an object from the XML
>
> Thanks for you help,
>
> Scott
>
> -----------------------------------------------------------
> 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