On 27 Jan 2005, at 5:32 PM, Keith wrote:
> so what puzzles me is why Castor generates classes
> which seem as though there can only be one of each choice-possibility...
> or am I missing something?
Castor should generate a GroupingAndChildrenNodes class, that contains a
collection of GroupingAndChildrenNodesChoiceType, of which each
GroupingAndChildrenNodesChoiceType can contain on of the possible choices.
there is where I get confused
[ the javadocs for the generated classes are at http://www.xvrml.net/javadocs/ ]
Castor generates a Class GroupingAndChildrenNodes class but I do not see the collection of GroupingAndChildrenNodesType which I expected to find
there is a getGroupingAndChildrenNodesItem() method which returns a GroupingAndChidrenNodesItem[ ] and a getGroupingAndChildrenNodesItem( int index ) method which returns one GroupingAndChidrenNodesItemItem and a GroupingAndChidrenNodesItemCount which returns an int
Question 1:
so what do I do if I take this DOM-like approach? get the count and the array and iterate through each asking for the [what?] and finding out what it is [how?]
Question 2:
how do I get Castor to generate classes which expose the SAX loading which is happening happening "under the hood" so my app can notice when each element is being loaded and do what it needs to do with it?
jeffs
-- Jeff Sonstein, Assistant Professor Department of Information Technology Rochester Institute of Technology ============================================== IT Dept Webspace: http://www.it.rit.edu/~jxs/ Blog: http://streamer.rit.edu/technobabble/ xVRML Project: http://www.xvrml.net/ Public Key: http://ariadne.iz.net/~jeffs/jeffs.asc Disclaimer: http://www.it.rit.edu/~jxs/emailDisclaimer.html
"If you wish to know The Way Do not ask directions. Argue."
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
