User: ara_e_w 
  Date: 02/05/26 13:29:55

  Modified:    modules/jboss/src/xdoclet/modules/jboss/ejb Tag:
                        MODULE_REFACTORING_BRANCH
                        JBossRelationTagsHandler.java JBossTagsHandler.java
  Log:
  xjavadoc javabeaninifiction refactoring
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.4   +17 -17    
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.3
  retrieving revision 1.1.2.4
  diff -u -w -r1.1.2.3 -r1.1.2.4
  --- JBossRelationTagsHandler.java     15 May 2002 19:38:15 -0000      1.1.2.3
  +++ JBossRelationTagsHandler.java     26 May 2002 20:29:55 -0000      1.1.2.4
  @@ -15,7 +15,7 @@
    * @author               <a href="mailto:[EMAIL PROTECTED]";>David Budworth</a>
    * @created              Feb 4, 2002
    * @xdoclet:taghandler   namespace="JBEjbRel"
  - * @version              $Revision: 1.1.2.3 $
  + * @version              $Revision: 1.1.2.4 $
    */
   public class JBossRelationTagsHandler extends RelationTagsHandler
   {
  @@ -153,7 +153,7 @@
       {
           return getTagValue(
               FOR_METHOD,
  -            currentRelation.getLeftMethod().doc(),
  +            currentRelation.getLeftMethod().getDoc(),
               "jboss:relation",
               "fk-constraint",
               null,
  @@ -174,7 +174,7 @@
           if (currentRelation.isBidirectional()) {
               return getTagValue(
                   FOR_METHOD,
  -                currentRelation.getRightMethod().doc(),
  +                currentRelation.getRightMethod().getDoc(),
                   "jboss:relation",
                   "fk-constraint",
                   null,
  @@ -186,7 +186,7 @@
           else {
               return getTagValue(
                   FOR_METHOD,
  -                currentRelation.getLeftMethod().doc(),
  +                currentRelation.getLeftMethod().getDoc(),
                   "jboss:target-relation",
                   "fk-constraint",
                   null,
  @@ -222,10 +222,10 @@
           if (currentRelation.isMany2Many())
               return true;
           if (currentRelation.getLeftMethod() != null)
  -            if 
("relation-table".equals(currentRelation.getLeftMethod().doc().tagAttributeValue("jboss:relation-mapping",
 "style")))
  +            if 
("relation-table".equals(currentRelation.getLeftMethod().getDoc().getTagAttributeValue("jboss:relation-mapping",
 "style")))
                   return true;
           if (currentRelation.getRightMethod() != null)
  -            if 
("relation-table".equals(currentRelation.getRightMethod().doc().tagAttributeValue("jboss:relation-mapping",
 "style")))
  +            if 
("relation-table".equals(currentRelation.getRightMethod().getDoc().getTagAttributeValue("jboss:relation-mapping",
 "style")))
                   return true;
   
           return false;
  @@ -244,7 +244,7 @@
           }
           return getTagValue(
               FOR_METHOD,
  -            currentRelation.getLeftMethod().doc(),
  +            currentRelation.getLeftMethod().getDoc(),
               "jboss:relation",
               "fk-constraint",
               null,
  @@ -265,7 +265,7 @@
           if (currentRelation.isBidirectional()) {
               return getTagValue(
                   FOR_METHOD,
  -                currentRelation.getRightMethod().doc(),
  +                currentRelation.getRightMethod().getDoc(),
                   "jboss:relation",
                   "fk-constraint",
                   null,
  @@ -280,7 +280,7 @@
               }
               return getTagValue(
                   FOR_METHOD,
  -                currentRelation.getLeftMethod().doc(),
  +                currentRelation.getLeftMethod().getDoc(),
                   "jboss:target-relation",
                   "fk-constraint",
                   null,
  @@ -302,7 +302,7 @@
           if (currentRelation.getLeftMethod() == null) {
               return false;
           }
  -        return currentRelation.getLeftMethod().doc().hasTag("jboss:relation");
  +        return currentRelation.getLeftMethod().getDoc().hasTag("jboss:relation");
       }
   
       /**
  @@ -314,13 +314,13 @@
       private boolean rightHasFK() throws XDocletException
       {
           if (currentRelation.isBidirectional()) {
  -            return currentRelation.getRightMethod().doc().hasTag("jboss:relation");
  +            return 
currentRelation.getRightMethod().getDoc().hasTag("jboss:relation");
           }
           else {
               if (currentRelation.getLeftMethod() == null) {
                   return false;
               }
  -            return 
currentRelation.getLeftMethod().doc().hasTag("jboss:target-relation");
  +            return 
currentRelation.getLeftMethod().getDoc().hasTag("jboss:target-relation");
           }
       }
   
  @@ -336,14 +336,14 @@
           XTag[] fktags = null;
   
           if (left) {
  -            fktags = currentRelation.getLeftMethod().doc().tags("jboss:relation");
  +            fktags = 
currentRelation.getLeftMethod().getDoc().getTags("jboss:relation");
           }
           else {
               if (currentRelation.isBidirectional()) {
  -                fktags = 
currentRelation.getRightMethod().doc().tags("jboss:relation");
  +                fktags = 
currentRelation.getRightMethod().getDoc().getTags("jboss:relation");
               }
               if (fktags == null) {
  -                fktags = 
currentRelation.getLeftMethod().doc().tags("jboss:target-relation");
  +                fktags = 
currentRelation.getLeftMethod().getDoc().getTags("jboss:target-relation");
               }
           }
   
  @@ -353,8 +353,8 @@
           }
   
           for (int i = 0; i < fktags.length; i++) {
  -            currentFKRelField = fktags[i].attributeValue("related-pk-field");
  -            currentFKCol = fktags[i].attributeValue("fk-column");
  +            currentFKRelField = fktags[i].getAttributeValue("related-pk-field");
  +            currentFKCol = fktags[i].getAttributeValue("fk-column");
               generate(template);
           }
       }
  
  
  
  1.1.2.6   +4 -4      
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.5
  retrieving revision 1.1.2.6
  diff -u -w -r1.1.2.5 -r1.1.2.6
  --- JBossTagsHandler.java     15 May 2002 19:38:15 -0000      1.1.2.5
  +++ JBossTagsHandler.java     26 May 2002 20:29:55 -0000      1.1.2.6
  @@ -23,7 +23,7 @@
    * @author               Dmitri Colebatch ([EMAIL PROTECTED])
    * @created              October 18, 2001
    * @xdoclet:taghandler   namespace="JBoss"
  - * @version              $Revision: 1.1.2.5 $
  + * @version              $Revision: 1.1.2.6 $
    */
   public class JBossTagsHandler extends ClassTagsHandler
   {
  @@ -38,7 +38,7 @@
           Log log = LogUtil.getLog(JBossTagsHandler.class, "jBossResourceClassName");
   
           if (log.isDebugEnabled()) {
  -            log.debug("Searching @jboss:resource-manager res-man-class for Class " 
+ getCurrentClass().name());
  +            log.debug("Searching @jboss:resource-manager res-man-class for Class " 
+ getCurrentClass().getName());
           }
   
           Properties prop = new Properties();
  @@ -62,14 +62,14 @@
           XClass[] classes = null;
   
           try {
  -            classes = XJavaDoc.getInstance().sourceClasses();
  +            classes = XJavaDoc.getInstance().getSourceClasses();
           }
           catch (XJavaDocException e) {
               throw new XDocletException(e, e.getMessage());
           }
   
           for (int i = 0; i < classes.length; i++) {
  -            XTag dvc = classes[i].doc().tag("jboss:dvc");
  +            XTag dvc = classes[i].getDoc().getTag("jboss:dvc");
   
               if (dvc != null) {
                   hasDVC = true;
  
  
  

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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

Reply via email to