hi all,
        subject is not so clear, but i'll try to explain what i want to do.

i am trying to generate code for Dynamic MBean following the xdt file included
in xdoclet for jboss.

i have following situation: for each operation, i have to build let's say one array
that holds all the parameter names.

so, code that i have to generate is as follows

String[] opParamNames = {param1, param2};

i will populate the array depending on how many  jmx-managed-parameter tags are in the 
source code..
but i need a way to say:

'if it is the last tag, don't add the comma'

because right now the output is  Stirng[] opParamNames = {param1, param2,};

with following 'syntax'

String[] <XDtMethod:methodName/>ParamNames = {
    <XDtMethod:forAllMethodTags tagName="jmx.managed-parameter">
     "<XDtMethod:methodTagValue tagName="jmx.managed-parameter" 
paramName="description" default="(no description)"/>",
    </XDtMethod:forAllMethodTags>     
     };

now, of course i can do so that i am populating a Vector, and then convert the vector 
to an Array...but i am
curious to know if it is possible to translate following sentence

'if it is the last tag, don't add the comma'

using xdoclet template language....

any help will be appreciated.

thanx in advance and regards
        marco


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to