Update of 
/cvsroot/xdoclet/xdoclet2/core/plugins/xtag/src/testapp/xdoclet/plugins/xtag/testapp
In directory 
sc8-pr-cvs1:/tmp/cvs-serv6403/core/plugins/xtag/src/testapp/xdoclet/plugins/xtag/testapp

Modified Files:
        DemoTag.java 
Log Message:
Added bridge between commons-logging and Ant's logger

Index: DemoTag.java
===================================================================
RCS file: 
/cvsroot/xdoclet/xdoclet2/core/plugins/xtag/src/testapp/xdoclet/plugins/xtag/testapp/DemoTag.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** DemoTag.java        7 Feb 2003 01:50:18 -0000       1.1
--- DemoTag.java        10 Feb 2003 12:24:50 -0000      1.2
***************
*** 1,14 ****
  package xdoclet.plugins.xtag.testapp;
  
  /**
   * The inherit value will have an effect on whether the XTag.isHeritable() method
   * returns true or false. This method will be called from xjavadoc!!
   *
!  * we'll have static isClassTag(), isMethodTag(), isFieldTag(), isConstructorTag(),
!  * all with sensible defaults. Let's default to class tag only for custom tags.
   *
   * The DefaultXTag should be all things.
   *
!  * Basically a call to getTags("foo", true) should be stopped (Error) if the tag 
doesn't alow inheritance.
   *
   * Further, to lessen risk of typos in velocity, we'll throw exceptions if the velo 
template
--- 1,17 ----
  package xdoclet.plugins.xtag.testapp;
  
+ import xjavadoc.DefaultXTag;
+ import xjavadoc.TagValidationException;
+ 
  /**
   * The inherit value will have an effect on whether the XTag.isHeritable() method
   * returns true or false. This method will be called from xjavadoc!!
   *
!  * we'll have isClassTag(), isMethodTag(), isFieldTag(), isConstructorTag(),
!  * all with sensible defaults (return true).
   *
   * The DefaultXTag should be all things.
   *
!  * Basically a call to getTags("foo", true) should be stopped (Error) if the tag 
doesn't allow inheritance.
   *
   * Further, to lessen risk of typos in velocity, we'll throw exceptions if the velo 
template
***************
*** 16,21 ****
   * b) asks for a tag attribute that isn't registered (static info in each FooTagImpl.
   *
!  * When xjavadoc parses the files, it can emit WARNINGS if it can't find the name in 
the map.
!  * Further, when it parses each tag, warnings can be issued too.
   *
   * @xdoclet.tag
--- 19,24 ----
   * b) asks for a tag attribute that isn't registered (static info in each FooTagImpl.
   *
!  * When xjavadoc parses the files, it can emit errors if it can't find the name in 
the map (already implemented).
!  * Further, when it parses each tag, warnings can be issued too (already 
implemented).
   *
   * @xdoclet.tag
***************
*** 23,31 ****
   *   class="true"
   *   inherit="false"
   */
! public abstract class DemoTag extends xjavadoc.DefaultXTag {
     /**
      * @xdoclet.tag-attribute name="message"
      */
     public abstract String getMessage();
  }
--- 26,44 ----
   *   class="true"
   *   inherit="false"
+  *   level="class,method"
   */
! public abstract class DemoTag extends DefaultXTag {
     /**
      * @xdoclet.tag-attribute name="message"
      */
     public abstract String getMessage();
+ 
+    /**
+     * This tag is valid unless \@demo.hello message="magic".
+     */
+    public void validate() throws TagValidationException {
+       if( "magic".equals( getMessage() ) ) {
+          throw new TagValidationException("Can't have magic message");
+       }
+    }
  }



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to