User: pathoss 
  Date: 02/05/15 12:38:15

  Modified:    modules/jboss/src/xdoclet/modules/jboss/ejb Tag:
                        MODULE_REFACTORING_BRANCH
                        JBossRelationTagsHandler.java JBossSubTask.java
                        JBossTagsHandler.java
  Log:
  Removed todo-javadoc.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.3   +347 -426  
xdoclet/modules/jboss/src/xdoclet/modules/jboss/ejb/Attic/JBossRelationTagsHandler.java
  
  Index: JBossRelationTagsHandler.java
  ===================================================================
  RCS file: 
/cvsroot/xdoclet/xdoclet/modules/jboss/src/xdoclet/modules/jboss/ejb/Attic/JBossRelationTagsHandler.java,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -w -r1.1.2.2 -r1.1.2.3
  --- JBossRelationTagsHandler.java     27 Apr 2002 13:53:46 -0000      1.1.2.2
  +++ JBossRelationTagsHandler.java     15 May 2002 19:38:15 -0000      1.1.2.3
  @@ -4,28 +4,23 @@
    */
   package xdoclet.modules.jboss.ejb;
   
  -import xdoclet.XDocletException;
  -import xdoclet.modules.ejb.dd.RelationTagsHandler;
  +import xjavadoc.XMethod;
   
   import xjavadoc.XTag;
  -import xjavadoc.XMethod;
  +
  +import xdoclet.XDocletException;
  +import xdoclet.modules.ejb.dd.RelationTagsHandler;
   
   /**
  - * @xdoclet:taghandler namespace="JBEjbRel"
  - *
    * @author    <a href="mailto:[EMAIL PROTECTED]";>David Budworth</a>
    * @created   Feb 4, 2002
  - * @version   $Revision: 1.1.2.2 $
  + * @xdoclet:taghandler   namespace="JBEjbRel"
  + * @version              $Revision: 1.1.2.3 $
    */
   public class JBossRelationTagsHandler extends RelationTagsHandler
   {
  -     /**
  -      * @todo-javadoc   Describe the field
  -      */
        private String     currentFKRelField = null;
  -     /**
  -      * @todo-javadoc   Describe the field
  -      */
  +
        private String     currentFKCol = null;
   
        /**
  @@ -33,14 +28,10 @@
         *
         * @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 ifNotLeftHasFK( String template ) throws XDocletException
        {
  -             if( !leftHasFK() )
  -             {
  +        if (!leftHasFK()) {
                        generate( template );
                }
        }
  @@ -50,14 +41,10 @@
         *
         * @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 ifNotRightHasFK( String template ) throws XDocletException
        {
  -             if( !rightHasFK() )
  -             {
  +        if (!rightHasFK()) {
                        generate( template );
                }
        }
  @@ -67,14 +54,10 @@
         *
         * @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 ifLeftHasFK( String template ) throws XDocletException
        {
  -             if( leftHasFK() )
  -             {
  +        if (leftHasFK()) {
                        generate( template );
                }
        }
  @@ -84,14 +67,10 @@
         *
         * @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 ifRightHasFK( String template ) throws XDocletException
        {
  -             if( rightHasFK() )
  -             {
  +        if (rightHasFK()) {
                        generate( template );
                }
        }
  @@ -101,9 +80,6 @@
         *
         * @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 forAllLeftForeignKeys( String template ) throws XDocletException
        {
  @@ -115,9 +91,6 @@
         *
         * @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 forAllRightForeignKeys( String template ) throws XDocletException
        {
  @@ -128,8 +101,6 @@
         * Describe what the method does
         *
         * @return         Describe the return value
  -      * @todo-javadoc   Write javadocs for method
  -      * @todo-javadoc   Write javadocs for return value
         */
        public String relatedPKField()
        {
  @@ -140,8 +111,6 @@
         * Describe what the method does
         *
         * @return         Describe the return value
  -      * @todo-javadoc   Write javadocs for method
  -      * @todo-javadoc   Write javadocs for return value
         */
        public String fkColumn()
        {
  @@ -153,14 +122,10 @@
         *
         * @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 ifLeftHasFKConstraint( String template ) throws XDocletException
        {
  -             if( leftHasFKConstraint() )
  -             {
  +        if (leftHasFKConstraint()) {
                        generate( template );
                }
        }
  @@ -170,14 +135,10 @@
         *
         * @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 ifRightHasFKConstraint( String template ) throws XDocletException
        {
  -             if( rightHasFKConstraint() )
  -             {
  +        if (rightHasFKConstraint()) {
                        generate( template );
                }
        }
  @@ -187,9 +148,6 @@
         *
         * @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 leftFKConstraint() throws XDocletException
        {
  @@ -210,14 +168,10 @@
         *
         * @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 rightFKConstraint() throws XDocletException
        {
  -             if( currentRelation.isBidirectional() )
  -             {
  +        if (currentRelation.isBidirectional()) {
                        return getTagValue(
                                FOR_METHOD,
                                currentRelation.getRightMethod().doc(),
  @@ -229,8 +183,7 @@
                                false
                                 );
                }
  -             else
  -             {
  +        else {
                        return getTagValue(
                                FOR_METHOD,
                                currentRelation.getLeftMethod().doc(),
  @@ -257,9 +210,8 @@
        }
   
        /**
  -      * Checks if the current relation should use a relation table mapping. This can
  -      * occurs if the current relation is many-to-many or the programmer has
  -      * explicitly set
  +     * Checks if the current relation should use a relation table mapping. This can 
occurs if the current relation is
  +     * many-to-many or the programmer has explicitly set
         *
         * @return                      true if relation-table-mapping should be used
         * @exception XDocletException
  @@ -284,14 +236,10 @@
         *
         * @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
         */
        private boolean leftHasFKConstraint() throws XDocletException
        {
  -             if( currentRelation.getLeftMethod() == null )
  -             {
  +        if (currentRelation.getLeftMethod() == null) {
                        return false;
                }
                return getTagValue(
  @@ -311,14 +259,10 @@
         *
         * @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
         */
        private boolean rightHasFKConstraint() throws XDocletException
        {
  -             if( currentRelation.isBidirectional() )
  -             {
  +        if (currentRelation.isBidirectional()) {
                        return getTagValue(
                                FOR_METHOD,
                                currentRelation.getRightMethod().doc(),
  @@ -330,10 +274,8 @@
                                false
                                 ) != null;
                }
  -             else
  -             {
  -                     if( currentRelation.getLeftMethod() == null )
  -                     {
  +        else {
  +            if (currentRelation.getLeftMethod() == null) {
                                return false;
                        }
                        return getTagValue(
  @@ -354,14 +296,10 @@
         *
         * @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
         */
        private boolean leftHasFK() throws XDocletException
        {
  -             if( currentRelation.getLeftMethod() == null )
  -             {
  +        if (currentRelation.getLeftMethod() == null) {
                        return false;
                }
                return currentRelation.getLeftMethod().doc().hasTag( "jboss:relation" 
);
  @@ -372,20 +310,14 @@
         *
         * @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
         */
        private boolean rightHasFK() throws XDocletException
        {
  -             if( currentRelation.isBidirectional() )
  -             {
  +        if (currentRelation.isBidirectional()) {
                        return currentRelation.getRightMethod().doc().hasTag( 
"jboss:relation" );
                }
  -             else
  -             {
  -                     if( currentRelation.getLeftMethod() == null )
  -                     {
  +        else {
  +            if (currentRelation.getLeftMethod() == null) {
                                return false;
                        }
                        return currentRelation.getLeftMethod().doc().hasTag( 
"jboss:target-relation" );
  @@ -398,43 +330,32 @@
         * @param template              Describe what the parameter does
         * @param left                  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
         */
        private void forAllForeignKeys( String template, boolean left ) throws 
XDocletException
        {
                XTag[] fktags = null;
   
  -             if( left )
  -             {
  +        if (left) {
                        fktags = currentRelation.getLeftMethod().doc().tags( 
"jboss:relation" );
                }
  -             else
  -             {
  -                     if( currentRelation.isBidirectional() )
  -                     {
  +        else {
  +            if (currentRelation.isBidirectional()) {
                                fktags = currentRelation.getRightMethod().doc().tags( 
"jboss:relation" );
                        }
  -                     if( fktags == null )
  -                     {
  +            if (fktags == null) {
                                fktags = currentRelation.getLeftMethod().doc().tags( 
"jboss:target-relation" );
                        }
                }
   
                //maybe we should throw here?
  -             if( fktags == null )
  -             {
  +        if (fktags == null) {
                        return;
                }
   
  -             for( int i = 0; i < fktags.length; i++ )
  -             {
  +        for (int i = 0; i < fktags.length; i++) {
                        currentFKRelField = fktags[i].attributeValue( 
"related-pk-field" );
                        currentFKCol = fktags[i].attributeValue( "fk-column" );
                        generate( template );
                }
  -
        }
   }
  
  
  
  1.1.2.6   +288 -346  
xdoclet/modules/jboss/src/xdoclet/modules/jboss/ejb/Attic/JBossSubTask.java
  
  Index: JBossSubTask.java
  ===================================================================
  RCS file: 
/cvsroot/xdoclet/xdoclet/modules/jboss/src/xdoclet/modules/jboss/ejb/Attic/JBossSubTask.java,v
  retrieving revision 1.1.2.5
  retrieving revision 1.1.2.6
  diff -u -w -r1.1.2.5 -r1.1.2.6
  --- JBossSubTask.java 9 May 2002 16:42:51 -0000       1.1.2.5
  +++ JBossSubTask.java 15 May 2002 19:38:15 -0000      1.1.2.6
  @@ -4,273 +4,213 @@
    */
   package xdoclet.modules.jboss.ejb;
   
  +import java.io.File;
  +
   import xdoclet.XDocletException;
   import xdoclet.XmlSubTask;
   import xdoclet.modules.ejb.dd.AbstractEjbDeploymentDescriptorSubTask;
   import xdoclet.util.Translator;
   
  -import java.io.File;
  -
   /**
  - * @xdoclet:subtask name="jboss" parent="xdoclet.modules.ejb.EjbDocletTask"
  - *
    * Creates jboss-xml and jaws.xml deployment descriptors for JBoss.
    *
    * @author Ara Abrahamian ([EMAIL PROTECTED])
    * @author Dmitri Colebatch ([EMAIL PROTECTED])
    * @created Oct 15, 2001
  - * @version $Revision: 1.1.2.5 $
  - */
  -public class JBossSubTask extends AbstractEjbDeploymentDescriptorSubTask {
  -
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  -     private String version = "2.4";
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  -     private String datasource = "java:/DefaultDS";
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  -     private String typemapping;
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  -     private String generateRelations = "false";
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  -     private String securityDomain = "";
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  -     private String debug = "false";
  -     /**
  -      * @todo-javadoc Describe the field
  + * @xdoclet:subtask   name="jboss" parent="xdoclet.modules.ejb.EjbDocletTask"
  + * @version           $Revision: 1.1.2.6 $
         */
  +public class JBossSubTask extends AbstractEjbDeploymentDescriptorSubTask
  +{
        public final static String SUBTASK_NAME = "jboss";
   
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
        private final static String DEFAULT_JBOSS_XML_TEMPLATE_FILE = 
"resources/jboss_xml.xdt";
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  +
        private final static String JBOSS_XML_FILE_NAME = "jboss.xml";
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  +
        private final static String DEFAULT_JAWS_XML_TEMPLATE_FILE = 
"resources/jboss-jaws_xml.xdt";
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  +
        private final static String JAWS_XML_FILE_NAME = "jaws.xml";
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  +
        private final static String DEFAULT_JBOSSCMP_TEMPLATE_FILE = 
"resources/jbosscmp-jdbc_xml.xdt";
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  +
        private final static String JBOSSCMP_DD_FILE_NAME = "jbosscmp-jdbc.xml";
   
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
        private final static String JBOSS_DD_PUBLICID_24 = "-//JBoss//DTD JBOSS 
2.4//EN";
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  +
        private final static String JBOSS_DD_SYSTEMID_24 = 
"http://www.jboss.org/j2ee/dtd/jboss_2_4.dtd";;
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  +
        private final static String JBOSS_DTD_FILE_NAME_24 = "resources/jboss_2_4.dtd";
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  +
        private final static String JBOSS_DD_PUBLICID_30 = "-//JBoss//DTD JBOSS 
3.0//EN";
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  +
        private final static String JBOSS_DD_SYSTEMID_30 = 
"http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd";;
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  +
        private final static String JBOSS_DTD_FILE_NAME_30 = "resources/jboss_3_0.dtd";
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  +
        private final static String JAWS_DD_PUBLICID_24 = "-//JBoss//DTD JAWS 2.4//EN";
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  +
        private final static String JAWS_DD_SYSTEMID_24 = 
"http://www.jboss.org/j2ee/dtd/jaws_2_4.dtd";;
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  -     private final static String JAWS_DTD_FILE_NAME_24 = "resources/jaws_2_4.dtd";
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  -     private final static String JAWS_DD_PUBLICID_30 = "-//JBoss//DTD JAWS 3.0//EN";
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  -     private final static String JAWS_DD_SYSTEMID_30 = 
"http://www.jboss.org/j2ee/dtd/jaws_3_0.dtd";;
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  -     private final static String JAWS_DTD_FILE_NAME_30 = "resources/jaws_3_0.dtd";
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  -     private final static String JBOSSCMP_DD_PUBLICID = "-//JBoss//DTD 
JBOSSCMP-JDBC 3.0//EN";
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  -     private final static String JBOSSCMP_DD_SYSTEMID = 
"http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd";;
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  -     private final static String JBOSSCMP_DTD_FILE_NAME = 
"resources/jbosscmp-jdbc_3_0.dtd";
   
  +    private final static String JAWS_DTD_FILE_NAME_24 = "resources/jaws_2_4.dtd";
   
  -     /**
  -      * Sets the Debug attribute of the JBossSubTask object
  -      *
  -      * @param debug The new Debug value
  -      */
  -     public void setDebug(String debug) {
  -             this.debug = debug;
  -     }
  +    private final static String JAWS_DD_PUBLICID_30 = "-//JBoss//DTD JAWS 3.0//EN";
   
  +    private final static String JAWS_DD_SYSTEMID_30 = 
"http://www.jboss.org/j2ee/dtd/jaws_3_0.dtd";;
   
  -     /**
  -      * Sets the Version attribute of the JBossSubTask object
  -      *
  -      * @param version The new Version value
  -      */
  -     public void setVersion(JBossVersionTypes version) {
  -             this.version = version.getValue();
  -     }
  +    private final static String JAWS_DTD_FILE_NAME_30 = "resources/jaws_3_0.dtd";
   
  +    private final static String JBOSSCMP_DD_PUBLICID = "-//JBoss//DTD JBOSSCMP-JDBC 
3.0//EN";
   
  -     /**
  -      * Sets the SecurityDomain attribute of the JBossSubTask object
  -      *
  -      * @param aSecurityDomain The new SecurityDomain value
  -      */
  -     public void setSecurityDomain(String aSecurityDomain) {
  -             securityDomain = aSecurityDomain;
  -     }
  +    private final static String JBOSSCMP_DD_SYSTEMID = 
"http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd";;
   
  +    private final static String JBOSSCMP_DTD_FILE_NAME = 
"resources/jbosscmp-jdbc_3_0.dtd";
   
  -     /**
  -      * Sets the Datasource attribute of the JBossSubTask object
  -      *
  -      * @param datasource The new Datasource value
  -      */
  -     public void setDatasource(String datasource) {
  -             this.datasource = datasource;
  -     }
  +    private String  version = "2.4";
   
  +    private String  datasource = "java:/DefaultDS";
   
  -     /**
  -      * @param typemapping
  -      */
  -     public void setTypemapping(String typemapping) {
  -             this.typemapping = typemapping;
  -     }
  +    private String  typemapping;
   
  +    private String  generateRelations = "false";
   
  -     /**
  -      * @param generateRelations
  -      */
  -     public void setGenerateRelations(String generateRelations) {
  -             this.generateRelations = generateRelations;
  -     }
  +    private String  securityDomain = "";
   
  +    private String  debug = "false";
   
        /**
         * Gets the SubTaskName attribute of the JBossSubTask object
         *
         * @return The SubTaskName value
         */
  -     public String getSubTaskName() {
  +    public String getSubTaskName()
  +    {
                return SUBTASK_NAME;
        }
   
  -
        /**
         * Gets the Debug attribute of the JBossSubTask object
         *
         * @return The Debug value
         */
  -     public String getDebug() {
  +    public String getDebug()
  +    {
                return debug;
        }
   
  -
        /**
         * Gets the Version attribute of the JBossSubTask object
         *
         * @return The Version value
         */
  -     public String getVersion() {
  +    public String getVersion()
  +    {
                return version;
        }
   
  -
        /**
         * Gets the SecurityDomain attribute of the JBossSubTask object
         *
         * @return The SecurityDomain value
         */
  -     public String getSecurityDomain() {
  +    public String getSecurityDomain()
  +    {
                return securityDomain;
        }
   
  -
        /**
         * Gets the Datasource attribute of the JBossSubTask object
         *
         * @return The Datasource value
         */
  -     public String getDatasource() {
  +    public String getDatasource()
  +    {
                return datasource;
        }
   
  -
        /**
         * Gets the Typemapping attribute of the JBossSubTask object
         *
         * @return The Typemapping value
         */
  -     public String getTypemapping() {
  +    public String getTypemapping()
  +    {
                return typemapping;
        }
   
  -
        /**
         * Gets the GenerateRelations attribute of the JBossSubTask object
         *
         * @return The GenerateRelations value
         */
  -     public String getGenerateRelations() {
  +    public String getGenerateRelations()
  +    {
                return generateRelations;
        }
   
  +    /**
  +     * Sets the Debug attribute of the JBossSubTask object
  +     *
  +     * @param debug  The new Debug value
  +     */
  +    public void setDebug(String debug)
  +    {
  +        this.debug = debug;
  +    }
  +
  +    /**
  +     * Sets the Version attribute of the JBossSubTask object
  +     *
  +     * @param version  The new Version value
  +     */
  +    public void setVersion(JBossVersionTypes version)
  +    {
  +        this.version = version.getValue();
  +    }
  +
  +    /**
  +     * Sets the SecurityDomain attribute of the JBossSubTask object
  +     *
  +     * @param aSecurityDomain  The new SecurityDomain value
  +     */
  +    public void setSecurityDomain(String aSecurityDomain)
  +    {
  +        securityDomain = aSecurityDomain;
  +    }
  +
  +    /**
  +     * Sets the Datasource attribute of the JBossSubTask object
  +     *
  +     * @param datasource  The new Datasource value
  +     */
  +    public void setDatasource(String datasource)
  +    {
  +        this.datasource = datasource;
  +    }
  +
  +    /**
  +     * @param typemapping
  +     */
  +    public void setTypemapping(String typemapping)
  +    {
  +        this.typemapping = typemapping;
  +    }
  +
  +    /**
  +     * @param generateRelations
  +     */
  +    public void setGenerateRelations(String generateRelations)
  +    {
  +        this.generateRelations = generateRelations;
  +    }
   
        /**
         * Called to validate configuration parameters.
         *
         * @exception XDocletException Description of Exception
         */
  -     public void validateOptions() throws XDocletException {
  +    public void validateOptions() throws XDocletException
  +    {
                super.validateOptions();
   
                if (getTypemapping() == null || getTypemapping().trim().equals("")) {
  @@ -282,11 +222,11 @@
                }
        }
   
  -
        /**
         * @exception XDocletException Description of Exception
         */
  -     public void execute() throws XDocletException {
  +    public void execute() throws XDocletException
  +    {
                
setTemplateURL(getClass().getResource(DEFAULT_JBOSS_XML_TEMPLATE_FILE));
                setDestinationFile(JBOSS_XML_FILE_NAME);
                if (getVersion().equals("3.0")) {
  @@ -299,6 +239,7 @@
                        setSystemId(JBOSS_DD_SYSTEMID_24);
                        setDtdURL(getClass().getResource(JBOSS_DTD_FILE_NAME_24));
                }
  +
                startProcess();
   
                if (atLeastOneCmpEntityBeanExists()) {
  @@ -327,11 +268,11 @@
                }
        }
   
  -
        /**
         * @exception XDocletException Description of Exception
         */
  -     protected void engineStarted() throws XDocletException {
  +    protected void engineStarted() throws XDocletException
  +    {
                if (getDestinationFile().equals(JBOSS_XML_FILE_NAME)) {
                        
System.out.println(Translator.getString("generating_something", new 
String[]{JBOSS_XML_FILE_NAME}));
                }
  @@ -343,18 +284,19 @@
                }
        }
   
  -
        /**
         * @author Ara Abrahamian ([EMAIL PROTECTED])
         * @created October 20, 2001
         */
  -     public static class JBossVersionTypes extends 
org.apache.tools.ant.types.EnumeratedAttribute {
  +    public static class JBossVersionTypes extends 
org.apache.tools.ant.types.EnumeratedAttribute
  +    {
                /**
                 * Gets the Values attribute of the JBossVersionTypes object
                 *
                 * @return The Values value
                 */
  -             public String[] getValues() {
  +        public String[] getValues()
  +        {
                        return (new String[]{"2.4", "3.0"});
                }
        }
  
  
  
  1.1.2.5   +68 -71    
xdoclet/modules/jboss/src/xdoclet/modules/jboss/ejb/Attic/JBossTagsHandler.java
  
  Index: JBossTagsHandler.java
  ===================================================================
  RCS file: 
/cvsroot/xdoclet/xdoclet/modules/jboss/src/xdoclet/modules/jboss/ejb/Attic/JBossTagsHandler.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
  --- JBossTagsHandler.java     12 May 2002 15:21:18 -0000      1.1.2.4
  +++ JBossTagsHandler.java     15 May 2002 19:38:15 -0000      1.1.2.5
  @@ -4,39 +4,37 @@
    */
   package xdoclet.modules.jboss.ejb;
   
  -import xjavadoc.XJavaDoc;
  +import java.util.Properties;
  +
  +import org.apache.commons.logging.Log;
   import xjavadoc.XClass;
  +
  +import xjavadoc.XJavaDoc;
  +import xjavadoc.XJavaDocException;
   import xjavadoc.XMethod;
   import xjavadoc.XTag;
  -import xjavadoc.XJavaDocException;
  -
  -import org.apache.commons.logging.Log;
   
   import xdoclet.XDocletException;
  -import xdoclet.util.LogUtil;
   
   import xdoclet.tagshandler.ClassTagsHandler;
  -
  -import java.util.Properties;
  +import xdoclet.util.LogUtil;
   
   /**
  - * @xdoclet:taghandler namespace="JBoss"
  - *
    * @author Dmitri Colebatch ([EMAIL PROTECTED])
    * @created October 18, 2001
  - * @version $Revision: 1.1.2.4 $
  + * @xdoclet:taghandler   namespace="JBoss"
  + * @version              $Revision: 1.1.2.5 $
    */
  -public class JBossTagsHandler extends ClassTagsHandler {
  +public class JBossTagsHandler extends ClassTagsHandler
  +{
        /**
         * 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 jBossResourceClassName() throws XDocletException {
  +    public String jBossResourceClassName() throws XDocletException
  +    {
                Log log = LogUtil.getLog(JBossTagsHandler.class, 
"jBossResourceClassName");
   
                if (log.isDebugEnabled()) {
  @@ -52,21 +50,21 @@
                return classTagValue(prop);
        }
   
  -
        /**
  -      * Evaluates the body if at least one of the classes has an jboss:dvc tag,
  -      * otherwise not.
  +     * Evaluates the body if at least one of the classes has an jboss:dvc tag, 
otherwise not.
         *
         * @param template The body of the block tag
         * @exception XDocletException Description of Exception
         */
  -     public void ifHasDVC(String template) throws XDocletException {
  +    public void ifHasDVC(String template) throws XDocletException
  +    {
                boolean hasDVC = false;
                XClass[] classes = null;
   
                try {
                        classes = XJavaDoc.getInstance().sourceClasses();
  -             } catch (XJavaDocException e) {
  +        }
  +        catch (XJavaDocException e) {
                        throw new XDocletException(e, e.getMessage());
                }
   
  @@ -83,5 +81,4 @@
                        generate(template);
                }
        }
  -
   }
  
  
  

_______________________________________________________________

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