Hi list,

I have to iterate over all parameters of a special method to do some output.
But i don't find anything which will do that for me.

====8<==== template.xdt ====8<====
<XDtMethod:forAllMethods>
   <XDtMethod:ifHasMethodTag tagName="foo.method">
      <XDtMethod:forAllMethodParameters>
   [...do some output...]
      </XDtMethod:forAllMethodParameters>
   </XDtMethod:ifHasMethodTag>
</XDtMethod:forAllMethods>
====8<==== template.xdt ====8<====

^^ The sample above is how I would like to do it.
But I think there is no function which could do such an iteration over
method parameters, or is there one and i didn't find it?

I tried to write my own TagsHandler. Worked well for easier tags. I created
a FooTagsHandler and a Namespace Foo, so I can use my tags like:
<XDtFoo:methodName/>
Works fine, but I can't get a loop like the
<XDtMethod:forAllMethods>[...]</XDtMethod:forAllMethods> working.

Can anybody tell me how I can do a
<XDtFoo:forAllMethodParameters>[...]</XDtFoo:forAllMethodParameters> tag?

I found something like "forAllMembers(String template, Properties
attributes, int forType)" or "forAllMemberTags(String template, Properties
attributes, int forType, String resourceKey, String[] arguments)" in the API
doc in the AbstractProgramElementTagsHandler, but all of the Methods are not
really well-documented, so I can't figure out how I can create my
<XDtFoo:forAllMethodParameters> loop.

Can anybody help me to get this working? I would be glad about any hints,
source-snippets or anything else which will bring me closer to a working
solution.

Regards, Thomas


-------------------------------------------------------
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/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to