Hi
I have few queries on XDoclet templates
I am developing templates to identify the user defined tags and
generate the documentation for those tags
1) Is there a way to use a user defined variable in the XDoclet
template ?
2) For using Collection object in template, with reference to the
standard template documentation, we can put the values in the SET
(Colletion Type), but cannot retrieve it back (sounds weird) as get
works only for MAP type of Collections. Is there any way to get the
values put in the SET ?
I tried to use the MAP instead of SET , as follows :
<XDtCollection:put name="testIds" key="<XDtClass:classTagValue
tagName='testId'/>" value="<XDtClass:classTagValue
tagName='testId'/>"/>
but here ant task execution fails saying
<<'key' parameter missing or empty.>>
If I hardcode the key and value pairs for SET as follows, I can
retrieve them using get, but it should logically work with the above
generalised statement.
<XDtCollection:create name="numbers" type="map"/>
<XDtCollection:put name="numbers" key = "testId100"
value="testId100"/>
<XDtCollection:put name="numbers" key = "testId101"
value="testId101"/>
<XDtCollection:get name="numbers" key = "testId100" />
<XDtCollection:get name="numbers" key = "testId101" />
<XDtCollection:destroy name="numbers"/>
Can anyone identify if there is anything wrong with the above code ?
3) For Collection there are no Block Tags available in XDoclet
templates as they are for Class (like forAllClasses).
What can be the way to iterate over elements in the Collection then ?
Any help / suggesstion is highly appreciated.
Regards,
Kishore
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user