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

  Modified:    modules/bea/src/xdoclet/modules/bea/wls/ejb Tag:
                        MODULE_REFACTORING_BRANCH
                        WeblogicRelationTagsHandler.java
  Log:
  xjavadoc javabeaninifiction refactoring
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.5   +16 -16    
xdoclet/modules/bea/src/xdoclet/modules/bea/wls/ejb/Attic/WeblogicRelationTagsHandler.java
  
  Index: WeblogicRelationTagsHandler.java
  ===================================================================
  RCS file: 
/cvsroot/xdoclet/xdoclet/modules/bea/src/xdoclet/modules/bea/wls/ejb/Attic/WeblogicRelationTagsHandler.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
  --- WeblogicRelationTagsHandler.java  12 May 2002 15:34:57 -0000      1.1.2.4
  +++ WeblogicRelationTagsHandler.java  26 May 2002 20:29:52 -0000      1.1.2.5
  @@ -18,7 +18,7 @@
    * @author               <a href="mailto:[EMAIL PROTECTED]";>Aslak 
Hellesøy</a>
    * @created              12 mei 2002
    * @xdoclet:taghandler   namespace="WlEjbRel"
  - * @version              $Revision: 1.1.2.4 $
  + * @version              $Revision: 1.1.2.5 $
    */
   public class WeblogicRelationTagsHandler extends RelationTagsHandler
   {
  @@ -39,22 +39,22 @@
   
           if (currentRelation.getLeftMethod() != null) {
               // bidirectional
  -            columnMapTags = 
currentRelation.getLeftMethod().doc().tags("weblogic:column-map");
  +            columnMapTags = 
currentRelation.getLeftMethod().getDoc().getTags("weblogic:column-map");
               if (columnMapTags.length == 0) {
                   //throw new XDocletException( 
currentRelation.getRightMethod().name() + " should have at least one 
@weblogic:column-map tag (B)" );
               }
           }
           else {
               // unidirectional
  -            columnMapTags = 
currentRelation.getRightMethod().doc().tags("weblogic:target-column-map");
  +            columnMapTags = 
currentRelation.getRightMethod().getDoc().getTags("weblogic:target-column-map");
               if (columnMapTags.length == 0) {
                   //throw new XDocletException( 
currentRelation.getLeftMethod().name() + " should have at least one 
@weblogic:target-column-map tag (C)" );
               }
           }
   
           for (int i = 0; i < columnMapTags.length; i++) {
  -            currentForeignKeyColumn = 
columnMapTags[i].attributeValue("foreign-key-column");
  -            currentKeyColumn = columnMapTags[i].attributeValue("key-column");
  +            currentForeignKeyColumn = 
columnMapTags[i].getAttributeValue("foreign-key-column");
  +            currentKeyColumn = columnMapTags[i].getAttributeValue("key-column");
               generate(template);
           }
       }
  @@ -71,22 +71,22 @@
   
           if (currentRelation.getRightMethod() != null) {
               // bidirectional
  -            columnMapTags = 
currentRelation.getRightMethod().doc().tags("weblogic:column-map");
  +            columnMapTags = 
currentRelation.getRightMethod().getDoc().getTags("weblogic:column-map");
               if (columnMapTags.length == 0) {
                   //throw new XDocletException( 
currentRelation.getRightMethod().name() + " should have at least one 
@weblogic:column-map tag (B)" );
               }
           }
           else {
               // unidirectional
  -            columnMapTags = 
currentRelation.getLeftMethod().doc().tags("weblogic:target-column-map");
  +            columnMapTags = 
currentRelation.getLeftMethod().getDoc().getTags("weblogic:target-column-map");
               if (columnMapTags.length == 0) {
                   //throw new XDocletException( 
currentRelation.getLeftMethod().name() + " should have at least one 
@weblogic:target-column-map tag (C)" );
               }
           }
   
           for (int i = 0; i < columnMapTags.length; i++) {
  -            currentForeignKeyColumn = 
columnMapTags[i].attributeValue("foreign-key-column");
  -            currentKeyColumn = columnMapTags[i].attributeValue("key-column");
  +            currentForeignKeyColumn = 
columnMapTags[i].getAttributeValue("foreign-key-column");
  +            currentKeyColumn = columnMapTags[i].getAttributeValue("key-column");
               generate(template);
           }
       }
  @@ -100,10 +100,10 @@
           boolean rightHasColumnMapTags = false;
   
           if (currentRelation.getLeftMethod() != null) {
  -            leftHasTargetColumnMapTags = 
currentRelation.getLeftMethod().doc().tags("weblogic:target-column-map").length != 0;
  +            leftHasTargetColumnMapTags = 
currentRelation.getLeftMethod().getDoc().getTags("weblogic:target-column-map").length 
!= 0;
           }
           if (currentRelation.getRightMethod() != null) {
  -            rightHasColumnMapTags = 
currentRelation.getRightMethod().doc().tags("weblogic:column-map").length != 0;
  +            rightHasColumnMapTags = 
currentRelation.getRightMethod().getDoc().getTags("weblogic:column-map").length != 0;
           }
           if (leftHasTargetColumnMapTags || rightHasColumnMapTags) {
               currentRelation.swap();
  @@ -119,13 +119,13 @@
       public String joinTableName() throws XDocletException
       {
           // We say mandatory is false (last parameter), so we can provide a more 
detailed error message.
  -        String leftJoinTableName = 
currentRelation.getLeftMethod().doc().tagAttributeValue("weblogic:relation", 
"join-table-name", false);
  +        String leftJoinTableName = 
currentRelation.getLeftMethod().getDoc().getTagAttributeValue("weblogic:relation", 
"join-table-name", false);
           String joinTableName = leftJoinTableName;
           String rightJoinTableName = null;
   
           // do some sanity checking
           if (leftJoinTableName == null && currentRelation.getRightMethod() != null) {
  -            rightJoinTableName = 
currentRelation.getRightMethod().doc().tagAttributeValue("weblogic:relation", 
"join-table-name", false);
  +            rightJoinTableName = 
currentRelation.getRightMethod().getDoc().getTagAttributeValue("weblogic:relation", 
"join-table-name", false);
               joinTableName = rightJoinTableName;
           }
           if (leftJoinTableName != null && rightJoinTableName != null) {
  @@ -146,7 +146,7 @@
        */
       public String leftGroupName() throws XDocletException
       {
  -        return 
currentRelation.getLeftMethod().doc().tagAttributeValue("weblogic:relation", 
"group-name", false);
  +        return 
currentRelation.getLeftMethod().getDoc().getTagAttributeValue("weblogic:relation", 
"group-name", false);
       }
   
       /**
  @@ -174,11 +174,11 @@
   
           if (currentRelation.getRightMethod() != null) {
               // bidirectional
  -            groupName = 
currentRelation.getRightMethod().doc().tagAttributeValue("weblogic:relation", 
"group-name", false);
  +            groupName = 
currentRelation.getRightMethod().getDoc().getTagAttributeValue("weblogic:relation", 
"group-name", false);
           }
           else {
               // unidirectional
  -            groupName = 
currentRelation.getLeftMethod().doc().tagAttributeValue("weblogic:relation", 
"group-name", false);
  +            groupName = 
currentRelation.getLeftMethod().getDoc().getTagAttributeValue("weblogic:relation", 
"group-name", false);
           }
           return groupName;
       }
  
  
  

_______________________________________________________________

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