CVS: xdoclet/modules/jdo/src/xdoclet/modules/jdo JdoTagsHandler.java,1.15,1.16

Marco Schulze <[email protected]>
Newsgroups gmane.comp.java.xdoclet.devel
Message-ID <[email protected]>
Update of /cvsroot/xdoclet/xdoclet/modules/jdo/src/xdoclet/modules/jdo
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv545/modules/jdo/src/xdoclet/modules/jdo

Modified Files:
	JdoTagsHandler.java 
Log Message:
minor fix in order to support recursion-depth="-1"

Index: JdoTagsHandler.java
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/modules/jdo/src/xdoclet/modules/jdo/JdoTagsHandler.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** JdoTagsHandler.java	27 Feb 2006 19:25:27 -0000	1.15
--- JdoTagsHandler.java	1 Mar 2006 19:29:26 -0000	1.16
***************
*** 31,39 ****
  {
  
      private Collection _extensions;
      private VendorExtension _currentExtension;
  
      private String  currentFetchGroupFieldName = null;
!     private int     currentFetchGroupFieldRecursionDepth = -1;
  
      /**
--- 31,41 ----
  {
  
+     public final static int NO_RECURSION_DEPTH = -Integer.MAX_VALUE;
+ 
      private Collection _extensions;
      private VendorExtension _currentExtension;
  
      private String  currentFetchGroupFieldName = null;
!     private int     currentFetchGroupFieldRecursionDepth = NO_RECURSION_DEPTH;
  
      /**
***************
*** 207,211 ****
              throw new IllegalStateException("You cannot use ifCurrentFetchGroupFieldHasRecursionDepth outside of the forAllFetchGroupFieldNames loop!");
  
!         if (currentFetchGroupFieldRecursionDepth >= 0)
              generate(template);
      }
--- 209,213 ----
              throw new IllegalStateException("You cannot use ifCurrentFetchGroupFieldHasRecursionDepth outside of the forAllFetchGroupFieldNames loop!");
  
!         if (currentFetchGroupFieldRecursionDepth != NO_RECURSION_DEPTH)
              generate(template);
      }
***************
*** 274,278 ****
              if (parts.length == 1) {
                  // there is no recursion-depth
!                 recursionDepth = -1;
              }
              else if (parts.length == 2) {
--- 276,280 ----
              if (parts.length == 1) {
                  // there is no recursion-depth
!                 recursionDepth = NO_RECURSION_DEPTH;
              }
              else if (parts.length == 2) {
***************
*** 297,301 ****
          }
          currentFetchGroupFieldName = null;
!         currentFetchGroupFieldRecursionDepth = -1;
      }
  
--- 299,303 ----
          }
          currentFetchGroupFieldName = null;
!         currentFetchGroupFieldRecursionDepth = NO_RECURSION_DEPTH;
      }
  



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.