Ok, I added this to my MethodTagsHandler:

    /**
     * Evaluates body if current method begins with "set"
     *
     * @doc:tag                   type="body"
     * @todo finish off logic for testing for valid setter
     */
 public void ifIsSetter( String template, Properties attributes ) throws
XDocletException
 {
  if( getCurrentMethod().name().startsWith( "set" ) )
  {
   generate( template );
  }
 }


And it works fine.  Still a mystery why ifHasMethod with no parameters does
not work as documented.  I have not dug deeper to see why though, still
learning the XDoclet API.

ifIsSetter is not complete though - as it should test that the return type
is void, that the method is public, and that it conforms to the bean
parameter standards for either indexed or standard values.  I need a bit
more than just this logic anyway for something custom I'm attempting, so I'm
going to give it a shot to write my own tag handler.

    Erik



_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to