User: pathoss 
  Date: 02/05/12 06:13:23

  Modified:    modules/xdoclet/src/xdoclet/modules/doc/info Tag:
                        MODULE_REFACTORING_BRANCH InfoSubTask.java
                        InfoTagsHandler.java
  Log:
  Refactored. The thing compiles now :)
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.5   +217 -223  
xdoclet/modules/xdoclet/src/xdoclet/modules/doc/info/Attic/InfoSubTask.java
  
  Index: InfoSubTask.java
  ===================================================================
  RCS file: 
/cvsroot/xdoclet/xdoclet/modules/xdoclet/src/xdoclet/modules/doc/info/Attic/InfoSubTask.java,v
  retrieving revision 1.1.2.4
  retrieving revision 1.1.2.5
  diff -u -w -r1.1.2.4 -r1.1.2.5
  --- InfoSubTask.java  29 Apr 2002 19:14:24 -0000      1.1.2.4
  +++ InfoSubTask.java  12 May 2002 13:13:23 -0000      1.1.2.5
  @@ -4,27 +4,27 @@
    */
   package xdoclet.modules.doc.info;
   
  +import java.io.File;
  +import java.io.IOException;
  +import java.util.Iterator;
  +import java.util.Properties;
  +import java.util.SortedSet;
  +import java.util.TreeSet;
  +
  +import org.apache.commons.logging.Log;
  +
   import xjavadoc.XClass;
   import xjavadoc.XPackage;
   
  -import org.apache.log4j.Category;
  -
   import xdoclet.TemplateSubTask;
   import xdoclet.XDocletException;
   import xdoclet.modules.doc.DocumentDocletTask;
  -import xdoclet.util.Log;
  -import xdoclet.util.Translator;
  -import xdoclet.util.FileManager;
   import xdoclet.tagshandler.AbstractProgramElementTagsHandler;
   import xdoclet.tagshandler.ClassTagsHandler;
   import xdoclet.tagshandler.PackageTagsHandler;
  -
  -import java.io.File;
  -import java.io.IOException;
  -import java.util.Iterator;
  -import java.util.Properties;
  -import java.util.SortedSet;
  -import java.util.TreeSet;
  +import xdoclet.util.FileManager;
  +import xdoclet.util.LogUtil;
  +import xdoclet.util.Translator;
   
   /**
    * Extracts tag values from classes and method docs and generates an HTML report
  @@ -32,41 +32,30 @@
    * be used to generate TODO lists or any list with metrics about the occurrence
    * of a certain tag.
    *
  - * @xdoclet:subtask name="documenttags" parent="xdoclet.doc.DocumentDocletTask"
  - * @todo use DocletTask as parent instead. should be enough.
  - *
  - * @author <a href="mailto:[EMAIL PROTECTED]";>Aslak Helles�y</a>
  + * @author            <a href="mailto:[EMAIL PROTECTED]";>Aslak Helles�y
  + *      </a>
    * @created September 18, 2001
  - * @version $Revision: 1.1.2.4 $
  - * @todo This is a test on class level
  - * @todo This is another test on class level
  + * @xdoclet:subtask   name="documenttags"
  + *      parent="xdoclet.doc.DocumentDocletTask"
  + * @todo              use DocletTask as parent instead. should be enough.
  + * @version           $Revision: 1.1.2.5 $
    */
  -public class InfoSubTask extends TemplateSubTask {
  +public class InfoSubTask extends TemplateSubTask
  +{
  +    public final static String SUBTASK_NAME = "info";
   
  -     /**
  -      * @todo blabla (this is another test)
  -      */
        private final Properties _properties = new Properties();
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  +
        private String _header;
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  -     private String _projectname;
  -     /**
  -      * @todo blabla (this is a test)
  -      */
  -     public final static String SUBTASK_NAME = "info";
   
  +    private String  _projectname;
   
        /**
  -      * @todo blabla (this is yet another test)
         * @param documentDocletTask Describe what the parameter does
  -      * @todo-javadoc Write javadocs for method parameter
  +     * @todo                      blabla (this is yet another test)
         */
  -     public InfoSubTask(DocumentDocletTask documentDocletTask) {
  +    public InfoSubTask(DocumentDocletTask documentDocletTask)
  +    {
                // Set default values
                setHeader("Todo list");
                setTag("todo");
  @@ -80,72 +69,76 @@
   
   
        /**
  -      * Sets the Header attribute of the InfoSubTask object
  +     * Gets the Header attribute of the InfoSubTask object
         *
  -      * @param header The new Header value
  +     * @return   The Header value
         */
  -     public void setHeader(String header) {
  -             _header = header;
  +    public String getHeader()
  +    {
  +        return _header;
        }
   
   
        /**
  -      * Sets the Tag attribute of the InfoSubTask object
  +     * Gets the SubTaskName attribute of the InfoSubTask object
         *
  -      * @param tag The new Tag value
  +     * @return   The SubTaskName value
         */
  -     public void setTag(String tag) {
  -             _properties.setProperty("tagName", tag);
  +    public String getSubTaskName()
  +    {
  +        return SUBTASK_NAME;
        }
   
  -
        /**
  -      * Sets the Projectname attribute of the InfoSubTask object
  +     * Gets the Projectname attribute of the InfoSubTask object
         *
  -      * @param projectname The new Projectname value
  +     * @return   The Projectname value
         */
  -     public void setProjectname(String projectname) {
  -             _projectname = projectname;
  +    public String getProjectname()
  +    {
  +        return _projectname;
        }
   
  -
        /**
  -      * Gets the Header attribute of the InfoSubTask object
  +     * Sets the Header attribute of the InfoSubTask object
         *
  -      * @return The Header value
  +     * @param header  The new Header value
         */
  -     public String getHeader() {
  -             return _header;
  +    public void setHeader(String header)
  +    {
  +        _header = header;
        }
   
  -
        /**
  -      * Gets the SubTaskName attribute of the InfoSubTask object
  +     * Sets the Tag attribute of the InfoSubTask object
         *
  -      * @return The SubTaskName value
  +     * @param tag  The new Tag value
         */
  -     public String getSubTaskName() {
  -             return SUBTASK_NAME;
  +    public void setTag(String tag)
  +    {
  +        _properties.setProperty("tagName", tag);
        }
   
   
        /**
  -      * Gets the Projectname attribute of the InfoSubTask object
  +     * Sets the Projectname attribute of the InfoSubTask object
         *
  -      * @return The Projectname value
  +     * @param projectname  The new Projectname value
         */
  -     public String getProjectname() {
  -             return _projectname;
  +    public void setProjectname(String projectname)
  +    {
  +        _projectname = projectname;
        }
   
   
        /**
  -      * @todo generate an overview summary html too? (the default right page). It
  -      *      could be the old todo file, a bit modified.
         * @exception XDocletException Description of Exception
  +     * @todo                        generate an overview summary html too? (the
  +     *      default right page). It could be the old todo file, a bit modified.
         */
  -     public void execute() throws XDocletException {
  -             Category cat = Log.getCategory(InfoSubTask.class, "execute");
  +    public void execute() throws XDocletException
  +    {
  +        Log log = LogUtil.getLog(InfoSubTask.class, "execute");
   
                System.out.println(Translator.getString("xdoclet.doc.Messages", 
"create_info_lists_for",
                                new String[]{_properties.getProperty("tagName")}));
  @@ -158,7 +151,8 @@
                        
FileManager.writeURLContent(getClass().getResource("resources/field.gif"), new 
File(getDestDir(), "field.gif"));
                        
FileManager.writeURLContent(getClass().getResource("resources/constructor.gif"), new 
File(getDestDir(), "constructor.gif"));
                        
FileManager.writeURLContent(getClass().getResource("resources/method.gif"), new 
File(getDestDir(), "method.gif"));
  -             } catch (Throwable e) {
  +        }
  +        catch (Throwable e) {
                        e.printStackTrace();
                }
   
  @@ -210,7 +204,7 @@
                        
setTemplateURL(getClass().getResource("resources/class-details.xdt"));
                        for (int i = 0; i < classes.length; i++) {
                                setCurrentClass(classes[i]);
  -                             
setDestinationFile(ClassTagsHandler.getClassNameFor(getCurrentClass()) + 
"-details.html");
  +                setDestinationFile(getCurrentClass().name() + "-details.html");
                                startProcess();
                        }
   
  @@ -229,7 +223,8 @@
         *
         * @return The Properties value
         */
  -     protected Properties getProperties() {
  +    protected Properties getProperties()
  +    {
                return _properties;
        }
   
  @@ -238,9 +233,8 @@
         * Describe what the method does
         *
         * @exception XDocletException Describe the exception
  -      * @todo-javadoc Write javadocs for method
  -      * @todo-javadoc Write javadocs for exception
         */
  -     protected void engineStarted() throws XDocletException {
  +    protected void engineStarted() throws XDocletException
  +    {
        }
   }
  
  
  
  1.1.2.4   +423 -490  
xdoclet/modules/xdoclet/src/xdoclet/modules/doc/info/Attic/InfoTagsHandler.java
  
  Index: InfoTagsHandler.java
  ===================================================================
  RCS file: 
/cvsroot/xdoclet/xdoclet/modules/xdoclet/src/xdoclet/modules/doc/info/Attic/InfoTagsHandler.java,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -w -r1.1.2.3 -r1.1.2.4
  --- InfoTagsHandler.java      28 Apr 2002 22:25:23 -0000      1.1.2.3
  +++ InfoTagsHandler.java      12 May 2002 13:13:23 -0000      1.1.2.4
  @@ -4,48 +4,46 @@
    */
   package xdoclet.modules.doc.info;
   
  -import xjavadoc.XPackage;
  +import java.util.*;
   import xjavadoc.XClass;
   import xjavadoc.XConstructor;
   import xjavadoc.XField;
   import xjavadoc.XMethod;
  -import xjavadoc.XTag;
  +
  +import xjavadoc.XPackage;
   import xjavadoc.XProgramElement;
  +import xjavadoc.XTag;
   
   import xdoclet.XDocletException;
   import xdoclet.XDocletTagSupport;
   import xdoclet.tagshandler.AbstractProgramElementTagsHandler;
  -import xdoclet.tagshandler.PackageTagsHandler;
   import xdoclet.tagshandler.ClassTagsHandler;
   import xdoclet.tagshandler.ConstructorTagsHandler;
  -import xdoclet.tagshandler.MethodTagsHandler;
   import xdoclet.tagshandler.FieldTagsHandler;
  +import xdoclet.tagshandler.MethodTagsHandler;
  +import xdoclet.tagshandler.PackageTagsHandler;
   import xdoclet.template.TemplateException;
   
   import xdoclet.util.Translator;
   
  -import java.util.*;
  -
   /**
  - * @xdoclet:taghandler namespace="Info"
  - *
  - * @author <a href="mailto:[EMAIL PROTECTED]";>Aslak Helles�y</a>
  + * @author               <a href="mailto:[EMAIL PROTECTED]";>Aslak
  + *      Helles�y</a>
    * @created Oct 15, 2001
  - * @version $Revision: 1.1.2.3 $
  + * @xdoclet:taghandler   namespace="Info"
  + * @version              $Revision: 1.1.2.4 $
    */
  -public class InfoTagsHandler extends XDocletTagSupport {
  +public class InfoTagsHandler extends XDocletTagSupport
  +{
        /**
         * Describe what the method does
         *
         * @param template Describe what the parameter does
         * @param properties Describe what the parameter does
         * @exception XDocletException Describe the exception
  -      * @todo-javadoc Write javadocs for method
  -      * @todo-javadoc Write javadocs for method parameter
  -      * @todo-javadoc Write javadocs for method parameter
  -      * @todo-javadoc Write javadocs for exception
         */
  -     public void ifTagCountNotZero(String template, Properties properties) throws 
XDocletException {
  +    public void ifTagCountNotZero(String template, Properties properties) throws 
XDocletException
  +    {
                String level = properties.getProperty("level");
                int tagCount = tagCount_Impl(level);
   
  @@ -54,164 +52,130 @@
                }
        }
   
  -
        /**
         * Describe what the method does
         *
         * @param properties Describe what the parameter does
         * @return Describe the return value
         * @exception XDocletException Describe the exception
  -      * @todo-javadoc Write javadocs for method
  -      * @todo-javadoc Write javadocs for method parameter
  -      * @todo-javadoc Write javadocs for return value
  -      * @todo-javadoc Write javadocs for exception
         */
  -     public String tagCount(Properties properties) throws XDocletException {
  +    public String tagCount(Properties properties) throws XDocletException
  +    {
                String level = properties.getProperty("level");
                int tagCount = tagCount_Impl(level);
   
                return String.valueOf(tagCount);
        }
   
  -
        /**
         * Describe what the method does
         *
         * @return Describe the return value
         * @exception XDocletException Describe the exception
  -      * @todo-javadoc Write javadocs for method
  -      * @todo-javadoc Write javadocs for return value
  -      * @todo-javadoc Write javadocs for exception
         */
  -     public String classTagValue() throws XDocletException {
  +    public String classTagValue() throws XDocletException
  +    {
                return getClassTagsHandler().classTagValue(getProperties());
        }
   
  -
        /**
         * Describe what the method does
         *
         * @return Describe the return value
         * @exception XDocletException Describe the exception
  -      * @todo-javadoc Write javadocs for method
  -      * @todo-javadoc Write javadocs for return value
  -      * @todo-javadoc Write javadocs for exception
         */
  -     public String fieldTagValue() throws XDocletException {
  +    public String fieldTagValue() throws XDocletException
  +    {
                return getFieldTagsHandler().fieldTagValue(getProperties());
        }
   
  -
        /**
         * Describe what the method does
         *
         * @return Describe the return value
         * @exception XDocletException Describe the exception
  -      * @todo-javadoc Write javadocs for method
  -      * @todo-javadoc Write javadocs for return value
  -      * @todo-javadoc Write javadocs for exception
         */
  -     public String constructorTagValue() throws XDocletException {
  +    public String constructorTagValue() throws XDocletException
  +    {
                return 
getConstructorTagsHandler().constructorTagValue(getProperties());
        }
   
  -
        /**
         * Describe what the method does
         *
         * @return Describe the return value
         * @exception XDocletException Describe the exception
  -      * @todo-javadoc Write javadocs for method
  -      * @todo-javadoc Write javadocs for return value
  -      * @todo-javadoc Write javadocs for exception
         */
  -     public String methodTagValue() throws XDocletException {
  +    public String methodTagValue() throws XDocletException
  +    {
                return getMethodTagsHandler().methodTagValue(getProperties());
        }
   
  -
        /**
         * Describe what the method does
         *
         * @param template Describe what the parameter does
         * @exception XDocletException Describe the exception
  -      * @todo-javadoc Write javadocs for method
  -      * @todo-javadoc Write javadocs for method parameter
  -      * @todo-javadoc Write javadocs for exception
         */
  -     public void forAllClassTags(String template) throws XDocletException {
  +    public void forAllClassTags(String template) throws XDocletException
  +    {
                getClassTagsHandler().forAllClassTags(template, getProperties());
        }
   
  -
        /**
         * Describe what the method does
         *
         * @param template Describe what the parameter does
         * @exception XDocletException Describe the exception
  -      * @todo-javadoc Write javadocs for method
  -      * @todo-javadoc Write javadocs for method parameter
  -      * @todo-javadoc Write javadocs for exception
         */
  -     public void forAllConstructorTags(String template) throws XDocletException {
  +    public void forAllConstructorTags(String template) throws XDocletException
  +    {
                getConstructorTagsHandler().forAllConstructorTags(template, 
getProperties());
        }
   
  -
        /**
         * Describe what the method does
         *
         * @param template Describe what the parameter does
         * @exception XDocletException Describe the exception
  -      * @todo-javadoc Write javadocs for method
  -      * @todo-javadoc Write javadocs for method parameter
  -      * @todo-javadoc Write javadocs for exception
         */
  -     public void forAllMethodTags(String template) throws XDocletException {
  +    public void forAllMethodTags(String template) throws XDocletException
  +    {
                getMethodTagsHandler().forAllMethodTags(template, getProperties());
        }
   
  -
        /**
         * Describe what the method does
         *
         * @param template Describe what the parameter does
         * @exception XDocletException Describe the exception
  -      * @todo-javadoc Write javadocs for method
  -      * @todo-javadoc Write javadocs for method parameter
  -      * @todo-javadoc Write javadocs for exception
         */
  -     public void forAllFieldTags(String template) throws XDocletException {
  +    public void forAllFieldTags(String template) throws XDocletException
  +    {
                getFieldTagsHandler().forAllFieldTags(template, getProperties());
        }
   
  -
        /**
         * Describe what the method does
         *
         * @return Describe the return value
         * @exception XDocletException Describe the exception
  -      * @todo-javadoc Write javadocs for method
  -      * @todo-javadoc Write javadocs for return value
  -      * @todo-javadoc Write javadocs for exception
         */
  -     public String projectname() throws XDocletException {
  +    public String projectname() throws XDocletException
  +    {
                InfoSubTask infoSubTask = 
(InfoSubTask)getDocletContext().getActiveSubTask();
   
                return infoSubTask.getProjectname();
        }
   
  -
        /**
         * Describe what the method does
         *
         * @return Describe the return value
         * @exception XDocletException Describe the exception
  -      * @todo-javadoc Write javadocs for method
  -      * @todo-javadoc Write javadocs for return value
  -      * @todo-javadoc Write javadocs for exception
         */
  -     public String rootlink() throws XDocletException {
  +    public String rootlink() throws XDocletException
  +    {
                String packageName = "";
   
                if (getPackageTagsHandler().packageName() != null) {
  @@ -220,124 +184,119 @@
   
                StringTokenizer st = new StringTokenizer(packageName, ".");
                int n = st.countTokens();
  -             StringBuffer sb = new StringBuffer();
  +        StringBuffer sbuf = new StringBuffer();
   
                for (int i = 0; i < n; i++) {
  -                     sb.append("../");
  +            sbuf.append("../");
                }
  -             return sb.toString();
  +        return sbuf.toString();
        }
   
  -
        /**
         * Gets the Properties attribute of the InfoTagsHandler object
         *
         * @return The Properties value
         */
  -     private Properties getProperties() {
  +    private Properties getProperties()
  +    {
                Properties properties = 
((InfoSubTask)getDocletContext().getActiveSubTask()).getProperties();
  -
                return properties;
        }
   
  -
        /**
         * Gets the MethodTagsHandler attribute of the InfoTagsHandler object
         *
         * @return The MethodTagsHandler value
         * @exception XDocletException Describe the exception
  -      * @todo-javadoc Write javadocs for exception
         */
  -     private MethodTagsHandler getMethodTagsHandler() throws XDocletException {
  +    private MethodTagsHandler getMethodTagsHandler() throws XDocletException
  +    {
                try {
                        return 
((MethodTagsHandler)getEngine().getTagHandlerFor("Method"));
  -             } catch (TemplateException ex) {
  +        }
  +        catch (TemplateException ex) {
                        throw new XDocletException(ex, 
Translator.getString("xdoclet.doc.Messages",
                                        "tagshandler_not_found", new 
String[]{"MethodTagsHandler", "Method"}));
                }
        }
   
  -
        /**
         * Gets the FieldTagsHandler attribute of the InfoTagsHandler object
         *
         * @return The FieldTagsHandler value
         * @exception XDocletException Describe the exception
  -      * @todo-javadoc Write javadocs for exception
         */
  -     private FieldTagsHandler getFieldTagsHandler() throws XDocletException {
  +    private FieldTagsHandler getFieldTagsHandler() throws XDocletException
  +    {
                try {
                        return 
((FieldTagsHandler)getEngine().getTagHandlerFor("Field"));
  -             } catch (TemplateException ex) {
  +        }
  +        catch (TemplateException ex) {
                        throw new XDocletException(ex, 
Translator.getString("xdoclet.doc.Messages",
                                        "tagshandler_not_found", new 
String[]{"FieldTagsHandler", "Field"}));
                }
        }
   
  -
        /**
         * Gets the ConstructorTagsHandler attribute of the InfoTagsHandler object
         *
         * @return The ConstructorTagsHandler value
         * @exception XDocletException Describe the exception
  -      * @todo-javadoc Write javadocs for exception
         */
  -     private ConstructorTagsHandler getConstructorTagsHandler() throws 
XDocletException {
  +    private ConstructorTagsHandler getConstructorTagsHandler() throws 
XDocletException
  +    {
                try {
                        return 
((ConstructorTagsHandler)getEngine().getTagHandlerFor("Constructor"));
  -             } catch (TemplateException ex) {
  +        }
  +        catch (TemplateException ex) {
                        throw new XDocletException(ex, 
Translator.getString("xdoclet.doc.Messages",
                                        "tagshandler_not_found", new 
String[]{"ConstructorTagsHandler", "Constructor"}));
                }
        }
   
  -
        /**
         * Gets the ClassTagsHandler attribute of the InfoTagsHandler object
         *
         * @return The ClassTagsHandler value
         * @exception XDocletException Describe the exception
  -      * @todo-javadoc Write javadocs for exception
         */
  -     private ClassTagsHandler getClassTagsHandler() throws XDocletException {
  +    private ClassTagsHandler getClassTagsHandler() throws XDocletException
  +    {
                try {
                        return 
((ClassTagsHandler)getEngine().getTagHandlerFor("Class"));
  -             } catch (TemplateException ex) {
  +        }
  +        catch (TemplateException ex) {
                        throw new XDocletException(ex, 
Translator.getString("xdoclet.doc.Messages",
                                        "tagshandler_not_found", new 
String[]{"ClassTagsHandler", "Class"}));
                }
        }
   
  -
        /**
         * Gets the PackageTagsHandler attribute of the InfoTagsHandler object
         *
         * @return The PackageTagsHandler value
         * @exception XDocletException Describe the exception
  -      * @todo-javadoc Write javadocs for exception
         */
  -     private PackageTagsHandler getPackageTagsHandler() throws XDocletException {
  +    private PackageTagsHandler getPackageTagsHandler() throws XDocletException
  +    {
                try {
                        return 
((PackageTagsHandler)getEngine().getTagHandlerFor("Package"));
  -             } catch (TemplateException ex) {
  +        }
  +        catch (TemplateException ex) {
                        throw new XDocletException(ex, 
Translator.getString("xdoclet.doc.Messages",
                                        "tagshandler_not_found", new 
String[]{"PackageTagsHandler", "Package"}));
                }
        }
   
  -
        /**
         * Describe what the method does
         *
         * @param level Describe what the parameter does
         * @return Describe the return value
         * @exception XDocletException Describe the exception
  -      * @todo-javadoc Write javadocs for method
  -      * @todo-javadoc Write javadocs for method parameter
  -      * @todo-javadoc Write javadocs for return value
  -      * @todo-javadoc Write javadocs for exception
         */
  -     private int tagCount_Impl(String level) throws XDocletException {
  +    private int tagCount_Impl(String level) throws XDocletException
  +    {
                int tagCount = 0;
   
                if ("all".equals(level)) {
  @@ -368,19 +327,15 @@
                return tagCount;
        }
   
  -
        /**
         * Describe what the method does
         *
         * @param attributes Describe what the parameter does
         * @return Describe the return value
         * @exception XDocletException Describe the exception
  -      * @todo-javadoc Write javadocs for method
  -      * @todo-javadoc Write javadocs for method parameter
  -      * @todo-javadoc Write javadocs for return value
  -      * @todo-javadoc Write javadocs for exception
         */
  -     private int tagCountInAll_Impl(Properties attributes) throws XDocletException {
  +    private int tagCountInAll_Impl(Properties attributes) throws XDocletException
  +    {
                int tagCount = 0;
                String tag_name = attributes.getProperty("tagName");
   
  @@ -401,7 +356,6 @@
                return tagCount;
        }
   
  -
        /**
         * Describe what the method does
         *
  @@ -409,13 +363,9 @@
         * @param pakkage Describe what the parameter does
         * @return Describe the return value
         * @exception XDocletException Describe the exception
  -      * @todo-javadoc Write javadocs for method
  -      * @todo-javadoc Write javadocs for method parameter
  -      * @todo-javadoc Write javadocs for method parameter
  -      * @todo-javadoc Write javadocs for return value
  -      * @todo-javadoc Write javadocs for exception
         */
  -     private int tagCountInPackage_Impl(Properties attributes, XPackage pakkage) 
throws XDocletException {
  +    private int tagCountInPackage_Impl(Properties attributes, XPackage pakkage) 
throws XDocletException
  +    {
                int tagCount = 0;
                String tag_name = attributes.getProperty("tagName");
                XClass[] classes = pakkage.classes();
  @@ -426,7 +376,6 @@
                return tagCount;
        }
   
  -
        /**
         * Describe what the method does
         *
  @@ -438,17 +387,9 @@
         * @param countMethods Describe what the parameter does
         * @return Describe the return value
         * @exception XDocletException Describe the exception
  -      * @todo-javadoc Write javadocs for method
  -      * @todo-javadoc Write javadocs for method parameter
  -      * @todo-javadoc Write javadocs for method parameter
  -      * @todo-javadoc Write javadocs for method parameter
  -      * @todo-javadoc Write javadocs for method parameter
  -      * @todo-javadoc Write javadocs for method parameter
  -      * @todo-javadoc Write javadocs for method parameter
  -      * @todo-javadoc Write javadocs for return value
  -      * @todo-javadoc Write javadocs for exception
         */
  -     private int tagCountInClass_Impl(Properties attributes, XClass clazz, boolean 
countClass, boolean countFields, boolean countConstructors, boolean countMethods) 
throws XDocletException {
  +    private int tagCountInClass_Impl(Properties attributes, XClass clazz, boolean 
countClass, boolean countFields, boolean countConstructors, boolean countMethods) 
throws XDocletException
  +    {
                int tagCount = 0;
                String tagName = attributes.getProperty("tagName");
   
  @@ -473,37 +414,29 @@
                return tagCount;
        }
   
  -
        /**
         * Describe what the method does
         *
         * @param programElement Describe what the parameter does
         * @param tagName Describe what the parameter does
         * @return Describe the return value
  -      * @todo-javadoc Write javadocs for method
  -      * @todo-javadoc Write javadocs for method parameter
  -      * @todo-javadoc Write javadocs for method parameter
  -      * @todo-javadoc Write javadocs for return value
         */
  -     private int tagCount(XProgramElement programElement, String tagName) {
  +    private int tagCount(XProgramElement programElement, String tagName)
  +    {
                int count = programElement.doc().tags(tagName, false).length;
   
                return count;
        }
   
  -
        /**
         * Describe what the method does
         *
         * @param programElements Describe what the parameter does
         * @param tagName Describe what the parameter does
         * @return Describe the return value
  -      * @todo-javadoc Write javadocs for method
  -      * @todo-javadoc Write javadocs for method parameter
  -      * @todo-javadoc Write javadocs for method parameter
  -      * @todo-javadoc Write javadocs for return value
         */
  -     private int tagCount(XProgramElement[] programElements, String tagName) {
  +    private int tagCount(XProgramElement[] programElements, String tagName)
  +    {
                int count = 0;
   
                for (int i = 0; i < programElements.length; i++) {
  
  
  

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to