How can I use the template engine in order to know the position of the
tag within a forAll loop?
For example suppose I have the following input:
/**
* @myspace:my-tag description="Do some crazy stuff."
* @myspace:my-parameter name="firstObject" position="0"
description="My first object."
* @myspace:my-parameter name="secondObject" position="1"
description="My second object."
*/
public int doSomeCrazyStuff(Object firstObject, Object secondObject) {
return -1; }
I would like to have such an output:
public void myName(int index) {
switch (index) {
case 0:
return "firstObject";
case 1:
return "secondObject";
}
}
public void myDescription(int index) {
switch (index) {
case 0:
return "My first object."
case 1:
return "My second object.
}
}
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user