Jeff Sonstein wrote:

On 27 Jan 2005, at 7:16 PM, Keith wrote:

OK, I took a quick look at the javadocs. The collection is the array of
 GroupingAndChildrenNodesItem. So basically the GroupingAndChildrenNodes
 class contains a collection of GroupingAndChildrenNodesItem. Each
 GroupingAndChildrenNodesItem contains the choice component.

 So the collection is there, Castor is basically giving you one extra
 level of abstraction which you probably don't really need in your case,
 but none-the-less your collection is there.


<light_bulb state="lit"/>
ahhhhhhh
now I get it...
the extra layer was confusing me
[easy to do]

Yes, you iterate through each item, getting the
 GroupingAndChildrenNodesChoice contained within each. From there is
 where it gets slightly ugly...you need to have an if-then-else statement
 to check which value of the choice has been set:


ugly indeed


:-)

Well I don't use choice much in my generated source, so I usually don't run into that problem. But I'll see what I can do about getting the extra method generated. Feel free to tweak the SourceGenerator to your liking as well. If you come up with some good improvements, feel free to send them back to us via Bugzilla! :-)

Cheers,

--Keith



----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user

Reply via email to