User: rinkrank
  Date: 02/04/03 17:03:10

  Modified:    core/src/xdoclet/jmx/tags JMXTagsHandler.java
  Log:
  The pretty settings from xjavadoc were (are still) applied to xdoclet sources.
  It seems JRefactory only loads it once. Since the xdoclet build now invokes xjavadoc
  build first, xjavadoc settings are used. I'm sorry if I have messed up the 
formatting.
  This commit has modified the header (so that BEKK is not included).
  
  Revision  Changes    Path
  1.8       +40 -65    xdoclet/core/src/xdoclet/jmx/tags/JMXTagsHandler.java
  
  Index: JMXTagsHandler.java
  ===================================================================
  RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/jmx/tags/JMXTagsHandler.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -w -r1.7 -r1.8
  --- JMXTagsHandler.java       4 Apr 2002 00:27:49 -0000       1.7
  +++ JMXTagsHandler.java       4 Apr 2002 01:03:10 -0000       1.8
  @@ -1,37 +1,6 @@
   /*
  - * Copyright (c) 2001, Aslak Helles�y, BEKK Consulting
  + * Copyright (c) 2001,2002 The XDoclet team
    * All rights reserved.
  - *
  - * Redistribution and use in source and binary forms, with or without modification,
  - * are permitted provided that the following conditions are met:
  - *
  - * - Redistributions of source code must retain the above copyright notice,
  - *   this list of conditions and the following disclaimer.
  - *
  - * - Redistributions in binary form must reproduce the above copyright
  - *   notice, this list of conditions and the following disclaimer in the
  - *   documentation and/or other materials provided with the distribution.
  - *
  - * - Neither the name of BEKK Consulting nor the names of its
  - *   contributors may be used to endorse or promote products derived from
  - *   this software without specific prior written permission.
  - *
  - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
  - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
  - * DAMAGE.
  - */
  -
  -/*
  - * Change log
  - *
    */
   package xdoclet.jmx.tags;
   
  @@ -54,7 +23,7 @@
    * @author Jerome Bernard ([EMAIL PROTECTED])
    * @author Ara Abrahamian ([EMAIL PROTECTED])
    * @created 31 January 2002
  - * @version $Revision: 1.7 $
  + * @version $Revision: 1.8 $
    * @todo attributes - XXX: Does this need to be synchronized?
    * @todo ifIsGetterMethod, ifIsSetterMethod - TODO: There is a big overlap here
    *      with stuff in ejb - have a look.
  @@ -159,14 +128,15 @@
   
   
        /**
  -      * Describe what the method does @todo-javadoc Write javadocs for method
  +      * Describe what the method does
         *
  -      * @param template Describe what the parameter does @todo-javadoc Write
  -      *      javadocs for method parameter
  -      * @param attributes Describe what the parameter does @todo-javadoc Write
  -      *      javadocs for method parameter
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @param template Describe what the parameter does
  +      * @param attributes 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 forAllIndexedMethodParams(String template, Properties attributes) 
throws XDocletException {
                XTag[] tags = 
getCurrentMethod().doc().tags("jmx:managed-operation-parameter");
  @@ -181,14 +151,15 @@
   
   
        /**
  -      * Describe what the method does @todo-javadoc Write javadocs for method
  +      * Describe what the method does
         *
  -      * @param template Describe what the parameter does @todo-javadoc Write
  -      *      javadocs for method parameter
  -      * @param attributes Describe what the parameter does @todo-javadoc Write
  -      *      javadocs for method parameter
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @param template Describe what the parameter does
  +      * @param attributes 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 forAllIndexedConstructorParams(String template, Properties 
attributes) throws XDocletException {
                XTag[] tags = 
getCurrentConstructor().doc().tags("jmx:managed-constructor-parameter");
  @@ -205,12 +176,12 @@
        /**
         * @todo refactor common code with indexedConstructorParamValue into a private
         *      method
  -      * @param attributes Describe what the parameter does @todo-javadoc Write
  -      *      javadocs for method parameter
  -      * @return Describe the return value @todo-javadoc Write javadocs for return
  -      *      value
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @param attributes Describe what the parameter does
  +      * @return Describe the return value
  +      * @exception XDocletException Describe the exception
  +      * @todo-javadoc Write javadocs for method parameter
  +      * @todo-javadoc Write javadocs for return value
  +      * @todo-javadoc Write javadocs for exception
         */
        public String indexedMethodParamValue(Properties attributes) throws 
XDocletException {
                String tagName = attributes.getProperty("tagName");
  @@ -219,6 +190,7 @@
                if (tagName == null || paramName == null) {
                        throw new 
XDocletException(Translator.getString("xdoclet.jmx.Messages", "missing_attribute"));
                }
  +
                XTag[] tags = getCurrentMethod().doc().tags(tagName);
                String tagContent = tags[index].value();
                int begin = tagContent.indexOf(paramName + "=\"") + paramName.length() 
+ 2;
  @@ -229,14 +201,15 @@
   
   
        /**
  -      * Describe what the method does @todo-javadoc Write javadocs for method
  +      * Describe what the method does
         *
  -      * @param attributes Describe what the parameter does @todo-javadoc Write
  -      *      javadocs for method parameter
  -      * @return Describe the return value @todo-javadoc Write javadocs for return
  -      *      value
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @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
         */
        public String indexedConstructorParamValue(Properties attributes) throws 
XDocletException {
                String tagName = attributes.getProperty("tagName");
  @@ -245,6 +218,7 @@
                if (tagName == null || paramName == null) {
                        throw new 
XDocletException(Translator.getString("xdoclet.jmx.Messages", "missing_attribute"));
                }
  +
                XTag[] tags = getCurrentMethod().doc().tags(tagName);
                String tagContent = tags[index].value();
                int begin = tagContent.indexOf(paramName + "=\"") + paramName.length() 
+ 2;
  @@ -255,12 +229,13 @@
   
   
        /**
  -      * Describe what the method does @todo-javadoc Write javadocs for method
  +      * Describe what the method does
         *
  -      * @return Describe the return value @todo-javadoc Write javadocs for return
  -      *      value
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @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 constructorSignature() throws XDocletException {
                XConstructor currentConstructor = getCurrentConstructor();
  
  
  

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

Reply via email to