User: stevensa
  Date: 02/10/13 03:23:50

  Modified:    core/src/xdoclet/tagshandler ClassTagsHandler.java
  Log:
  XDT-37: Update objectweb module for Jonas version 2.6
  
  Revision  Changes    Path
  1.12      +26 -4     xdoclet/core/src/xdoclet/tagshandler/ClassTagsHandler.java
  
  Index: ClassTagsHandler.java
  ===================================================================
  RCS file: 
/cvsroot/xdoclet/xdoclet/core/src/xdoclet/tagshandler/ClassTagsHandler.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -w -r1.11 -r1.12
  --- ClassTagsHandler.java     18 Sep 2002 19:49:15 -0000      1.11
  +++ ClassTagsHandler.java     13 Oct 2002 10:23:50 -0000      1.12
  @@ -21,7 +21,7 @@
    * @author               Ara Abrahamian ([EMAIL PROTECTED])
    * @created              Oct 14, 2001
    * @xdoclet.taghandler   namespace="Class"
  - * @version              $Revision: 1.11 $
  + * @version              $Revision: 1.12 $
    */
   public class ClassTagsHandler extends AbstractProgramElementTagsHandler
   {
  @@ -66,19 +66,19 @@
        * Iterates over all tags named according to tagName in a non-duplicated 
manner. The paramName parameter should be
        * the tag parameter that should be unique during the iteration. Duplicated 
tags will generate a warning message.
        * Please note that this tag already processes all classes. There is no need to 
wrap it inside a
  -     * <XDtClass:forAllClasses> tag or any other tag that processes a group of 
classes.
  +     * <XDtClass:forAllClasses> tag or any other tag that processes a group 
of classes.
        *
  +     * @param engine
        * @param template           The body of the block tag
        * @param tagName            The tag to iterate
        * @param paramName          The tag parameter that should be used as 
identifier.
  -     * @param engine
        * @throws XDocletException  if something goes wrong
        */
       public static void forAllDistinctClassTags(TemplateEngine engine, String 
template, String tagName, String paramName) throws XDocletException
       {
           // A set to store already processed references
           Set tagKeys = new HashSet();
  -        Log log = LogUtil.getLog(ClassTagsHandler.class, "forAllDistinctTags");
  +        Log log = LogUtil.getLog(ClassTagsHandler.class, "forAllDistinctClassTags");
   
           try {
               Collection classes = XJavaDoc.getInstance().getSourceClasses();
  @@ -116,6 +116,28 @@
                   throw new XDocletException(e, 
Translator.getString(XDocletMessages.class, XDocletMessages.RUNNING_FAILED));
               }
           }
  +    }
  +
  +    /**
  +     * Iterates over all tags named according to tagName in a non-duplicated 
manner. The paramName parameter specifies
  +     * the tag parameter that should be unique during the iteration. Duplicated 
tags will generate a warning message.
  +     * Please note that this tag already processes all classes. There is no need to 
wrap it inside a
  +     * <XDtClass:forAllClasses> tag or any other tag that processes a group 
of classes.
  +     *
  +     * @param template           The body of the block tag
  +     * @param attributes         The attributes of the template tag
  +     * @throws XDocletException  if something goes wrong
  +     * @doc.tag                  type="block"
  +     * @doc.param                name="tagName" optional="false" description="The 
tag to iterate."
  +     * @doc.param                name="tagKey" optional="false" description="The 
tag parameter that should be used as
  +     *      identifier."
  +     */
  +    public void forAllDistinctClassTags(String template, Properties attributes) 
throws XDocletException
  +    {
  +        String tagName = attributes.getProperty("tagName");
  +        String paramName = attributes.getProperty("paramName");
  +
  +        forAllDistinctClassTags(getEngine(), template, tagName, paramName);
       }
   
       /**
  
  
  


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to