I have some clarification questions:
1. how exactly is the descriptor used? I have hunted throught the API
and I can find a use of it anywhere. How does castor know to use my
CustomerDescriptor class? An example would be great.
2. The reason I'm even trying to understand the descriptor is that it
appears to let me control how a values are accessed from an object.
Specifically, as far as I can tell the XMLFieldDescriptor has a
XMLFieldHandler which defines implementations for getValue and setValue
calls. I have a non-standard way to access fields in my objects and I
want to change the implementations of get/setValue to access the object
using different access methods. If I change the implementation of the
handlers for my descriptor will Castor XML use the new implementations
to access the properties in my object? Will Castor JDO use these
handlers to access the properties also?
Thanks,
-Brian
Keith Visco wrote:
>The descriptor file is used by the Marshalling Framework, you can use it
>yourself to obtain information about the classes or to interact with the
>classes, but it's primarly used by Castor. It is used by Castor XML
>only, since it contains no SQL related information which must currently
>be specified in the mapping file. Perhaps in the future SQL related
>information can be articulated to the source generator. Bruce and I will
>be working more closely so that Castor generated source code can work
>seamlessly with Castor JDO.
>
>Thanks,
>
>--Keith
>
>bikehead wrote:
>
>
>>I know that this is an incredibly simple question, but now that I've use
>>the source generator to make a class and its descriptor from the XSD,
>>where do I use the descriptor file? I searched through the tests and I
>>didn't find code that used one of the generated descriptors. I must be
>>looking in the wrong place. Please point me to a simple example that
>>uses the generated class and descriptor.
>>
>>Oh, one other question: as I understand it the descriptor is used
>>during marshalling, so is the descriptor used bothe by the XML
>>conversion and the Database components?
>>
>>Thank you,
>>
>>--
>> __o
>> _-\<,_ Brian
>>(_)/ (_) [EMAIL PROTECTED] x503
>>
>>
>>-----------------------------------------------------------
>>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
>
>
--
__o
_-\<,_ Brian
(_)/ (_) [EMAIL PROTECTED] x503
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev