xml-xmlbeans-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject cvs commit: xml-xmlbeans/v2/jam/test/tests/org/apache/xmlbeans/test/jam JamTestBase.java
Date Tue, 23 Mar 2004 00:01:14 GMT
pcal        2004/03/22 16:01:14

  Modified:    v2/jam/src/org/apache/xmlbeans/impl/jam/annotation
                        AnnotationProxy.java
               v2/jam/src/org/apache/xmlbeans/impl/jam/internal/elements
                        AnnotatedElementImpl.java
               v2/jam/src/org/apache/xmlbeans/impl/jam/internal/javadoc
                        JavadocClassBuilder.java
               v2/jam/src/org/apache/xmlbeans/impl/jam/internal/reflect
                        ReflectClassBuilder.java
               v2/jam/test/dummyclasses/org/apache/xmlbeans/test/jam/dummyclasses
                        ValuesById.java
               v2/jam/test/masters/javadoc testXmlRoundtrip.xml
                        testXmlWriter.xml
               v2/jam/test/masters/reflect testXmlRoundtrip.xml
                        testXmlWriter.xml
               v2/jam/test/tests/org/apache/xmlbeans/test/jam
                        JamTestBase.java
  Log:
  java2schema/jam updates and tests
  
  Revision  Changes    Path
  1.9       +7 -2      xml-xmlbeans/v2/jam/src/org/apache/xmlbeans/impl/jam/annotation/AnnotationProxy.java
  
  Index: AnnotationProxy.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/jam/src/org/apache/xmlbeans/impl/jam/annotation/AnnotationProxy.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- AnnotationProxy.java	22 Mar 2004 22:28:38 -0000	1.8
  +++ AnnotationProxy.java	23 Mar 2004 00:01:14 -0000	1.9
  @@ -319,10 +319,15 @@
         while (currentIndex < size && beginning != -1) {
           beginning = value.indexOf("//", currentIndex);
           if (-1 != beginning) {
  -          String tmp = value.substring(beginning);
  +          if (beginning > 0 && value.charAt(beginning-1) == ':') {
  +            //this is a quick fix for problem of unquoted url values.  for
  +            //now, just say it's not a comment if preceded by ':'.  should
  +            //review this later
  +            currentIndex = beginning+2;
  +            continue;
  +          }
             int end = value.indexOf('\n', beginning);
             if (-1 == end) end = size;
  -
             // We have identified a portion to remove, copy the one we want to
             // keep
             result = result + value.substring(currentIndex, beginning).trim() + "\n";
  
  
  
  1.13      +0 -4      xml-xmlbeans/v2/jam/src/org/apache/xmlbeans/impl/jam/internal/elements/AnnotatedElementImpl.java
  
  Index: AnnotatedElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/jam/src/org/apache/xmlbeans/impl/jam/internal/elements/AnnotatedElementImpl.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- AnnotatedElementImpl.java	22 Mar 2004 22:28:38 -0000	1.12
  +++ AnnotatedElementImpl.java	23 Mar 2004 00:01:14 -0000	1.13
  @@ -60,15 +60,11 @@
   
       int delim = valueId.indexOf('@');
       if (delim == -1 || delim == valueId.length()-1) {
  -          System.out.println("--- single   "+valueId);
         JAnnotation ann = getAnnotation(valueId);
         if (ann == null) return null;
         return ann.getValue(JAnnotation.SINGLE_VALUE_NAME);
       } else {
  -      System.out.println("--- double '"+valueId.substring(0,delim)+"'   '"+
  -                         valueId.substring(delim+1)+"'");
         JAnnotation ann = getAnnotation(valueId.substring(0,delim));
  -      System.out.println("    the ann is "+ann);
         if (ann == null) return null;
   
         return ann.getValue(valueId.substring(delim+1));
  
  
  
  1.16      +5 -1      xml-xmlbeans/v2/jam/src/org/apache/xmlbeans/impl/jam/internal/javadoc/JavadocClassBuilder.java
  
  Index: JavadocClassBuilder.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/jam/src/org/apache/xmlbeans/impl/jam/internal/javadoc/JavadocClassBuilder.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- JavadocClassBuilder.java	19 Mar 2004 04:17:52 -0000	1.15
  +++ JavadocClassBuilder.java	23 Mar 2004 00:01:14 -0000	1.16
  @@ -58,10 +58,14 @@
       mServiceContext = ctx;
       mLogger = ctx.getLogger();
       try {
  +      // class for name this because it's 1.5 specific.  if it fails, we
  +      // don't want to use the extractor
  +      Class.forName("com.sun.javadoc.AnnotationDesc");
         mExtractor = (JavadocAnnotationExtractor)
           Class.forName(JAVA15_EXTRACTOR).newInstance();
  +
       } catch (ClassNotFoundException e) {
  -      mLogger.error(e);
  +      mLogger.warning(e);
       } catch (IllegalAccessException e) {
         mLogger.verbose(e);
       } catch (InstantiationException e) {
  
  
  
  1.5       +4 -1      xml-xmlbeans/v2/jam/src/org/apache/xmlbeans/impl/jam/internal/reflect/ReflectClassBuilder.java
  
  Index: ReflectClassBuilder.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/jam/src/org/apache/xmlbeans/impl/jam/internal/reflect/ReflectClassBuilder.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ReflectClassBuilder.java	18 Mar 2004 04:31:35 -0000	1.4
  +++ ReflectClassBuilder.java	23 Mar 2004 00:01:14 -0000	1.5
  @@ -59,10 +59,13 @@
       mLogger = ctx;
       mLoader = rcl;
       try {
  +      // class for name this because it's 1.5 specific.  if it fails, we
  +      // don't want to use the extractor
  +      Class.forName("java.lang.annotation.Annotation");
         mExtractor = (ReflectAnnotationExtractor)
           Class.forName(JAVA15_EXTRACTOR).newInstance();
       } catch (ClassNotFoundException e) {
  -      mLogger.error(e);
  +      mLogger.warning(e);
       } catch (IllegalAccessException e) {
         mLogger.verbose(e);
       } catch (InstantiationException e) {
  
  
  
  1.2       +4 -0      xml-xmlbeans/v2/jam/test/dummyclasses/org/apache/xmlbeans/test/jam/dummyclasses/ValuesById.java
  
  Index: ValuesById.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/jam/test/dummyclasses/org/apache/xmlbeans/test/jam/dummyclasses/ValuesById.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ValuesById.java	22 Mar 2004 22:28:38 -0000	1.1
  +++ ValuesById.java	23 Mar 2004 00:01:14 -0000	1.2
  @@ -25,6 +25,10 @@
    *
    * @baz I have no pairs.
    *
  + * @xsdgen:type target_namespace=http://www.yahoo.com
  + * @xsdgen:type quoted_tns="http://homestarrunner.com/sbemail58.html" 
  + * @someurl http://www.apache.org/foo
  + *
    * @author Patrick Calahan &lt;email: pcal-at-bea-dot-com&gt;
    */
   public class ValuesById {
  
  
  
  1.3       +1 -1      xml-xmlbeans/v2/jam/test/masters/javadoc/testXmlRoundtrip.xml
  
  Index: testXmlRoundtrip.xml
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/jam/test/masters/javadoc/testXmlRoundtrip.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- testXmlRoundtrip.xml	22 Mar 2004 22:28:38 -0000	1.2
  +++ testXmlRoundtrip.xml	23 Mar 2004 00:01:14 -0000	1.3
  @@ -18,7 +18,7 @@
      quote in a weird place  </value></annotation-value></annotation><annotation><name>ejbgen:finder</name><annotation-value><name>signature</name><value>java.util.Collection findByName(java.lang.String name)</value></annotation-value><annotation-value><name>ejb-ql</name><value>SELECT OBJECT(o)
       FROM BandEJB AS o
       WHERE o.name = ?1</value></annotation-value></annotation><annotation><name>bee</name><annotation-value><name>""</name><value>=</value></annotation-value><annotation-value><name>question</name><value>Can</value></annotation-value><annotation-value><name>we</name><value>
  -   </value></annotation-value></annotation><source-position><line>62</line><column>8</column></source-position></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.Base</name><is-interface>false</is-interface><modifiers>1025</modifiers><superclass>java.lang.Object</superclass><interface>org.apache.xmlbeans.test.jam.dummyclasses.Foo</interface><field><name>doonkie</name><modifiers>2</modifiers><parameter>double</parameter><comment><![CDATA[doonkie javadoc!]]></comment><source-position><line>24</line><column>18</column></source-position></field><field><name>doonkietoo</name><modifiers>2</modifiers><parameter>long</parameter><source-position><line>25</line><column>16</column></source-position></field><constructor><modifiers>1</modifiers><source-position><line>16</line><column>17</column></source-position></constructor><method><name>getId</name><return-type>int</return-type><modifiers>1</modifiers><source-position><line>27</line><column>14</column></source-position></method><method><name>getFoo</name><return-type>java.lang.String</return-type><modifiers>1</modifiers><source-position><line>30</line><column>17</column></source-position></method><method><name>setId</name><return-type>void</return-type><modifiers>1</modifiers><parameter><name>id</name><parameter>int</parameter></parameter><source-position><line>32</line><column>15</column></source-position></method><annotation><name>author</name><annotation-value><name>value</name><value>pcal Nov 25, 2003</value></annotation-value></annotation><comment><![CDATA[Dummy class for JAM tests.]]></comment><source-position><line>16</line><column>17</column></source-position></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ejb.IEnv</name><is-interface>true</is-interface><modifiers>513</modifiers><method><name>buy</name><return-type>org.apache.xmlbeans.test.jam.dummyclasses.ejb.TradeResult</return-type><modifiers>1</modifiers><parameter><name>customerName</name><parameter>java.lang.String</parameter></parameter><parameter><name>stockSymbol</name><parameter>java.lang.String</parameter></parameter><parameter><name>shares</name><parameter>int</parameter></parameter><annotation><name>ejbgen:remote-method</name><annotation-value><name>transaction-attribute</name><value>NotSupported</value></annotation-value></annotation><source-position><line>9</line><column>22</column></source-position></method><source-position><line>3</line><column>8</column></source-position></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ManyTags</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers><source-position><line>20</line><column>8</column></source-position></constructor><method><name>getId</name><return-type>int</return-type><modifiers>1</modifiers><annotation><name>foo</name><annotation-value><name>x</name><value>-43</value></annotation-value><annotation-value><name>z</name><value>79</value></annotation-value><annotation-value><name>y</name><value>124</value></annotation-value><annotation-value><name>y</name><value>2</value></annotation-value><annotation-value><name>x</name><value>1</value></annotation-value><annotation-value><name>z</name><value>3</value></annotation-value><annotation-value><name>w</name><value>0</value></annotation-value></annotation><annotation><name>baz</name><annotation-value><name>x</name><value>1</value></annotation-value></annotation><annotation><name>bar</name><annotation-value><name>x</name><value>-4343</value></annotation-value></annotation><source-position><line>33</line><column>14</column></source-position></method><comment><![CDATA[Tests case for javadoc tags is declared more than once in a document.]]></comment><source-position><line>20</line><column>8</column></source-position></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.MyException</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Exception</superclass><constructor><modifiers>1</modifiers><source-position><line>21</line><column>8</column></source-position></constructor><annotation><name>author</name><annotation-value><name>value</name><value>Patrick Calahan &amp;lt;email: pcal-at-bea-dot-com&amp;gt;</value></annotation-value></annotation><source-position><line>21</line><column>8</column></source-position></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ValuesById</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers><source-position><line>30</line><column>8</column></source-position></constructor><annotation><name>foo</name><annotation-value><name>x</name><value>-43</value></annotation-value><annotation-value><name>z</name><value>79</value></annotation-value><annotation-value><name>y</name><value>124</value></annotation-value><annotation-value><name>y</name><value>2</value></annotation-value><annotation-value><name>x</name><value>1</value></annotation-value><annotation-value><name>z</name><value>3</value></annotation-value><annotation-value><name>w</name><value>0</value></annotation-value></annotation><annotation><name>baz</name><annotation-value><name>value</name><value>I have no pairs.</value></annotation-value></annotation><annotation><name>bar</name><annotation-value><name>x</name><value>hello</value></annotation-value><annotation-value><name>widegetgen:name</name><value>aloha</value></annotation-value><annotation-value><name>y</name><value>goodbye</value></annotation-value></annotation><annotation><name>author</name><annotation-value><name>value</name><value>Patrick Calahan &amp;lt;email: pcal-at-bea-dot-com&amp;gt;</value></annotation-value></annotation><source-position><line>30</line><column>8</column></source-position></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.HeavilyCommented</name><is-interface>false</is-interface><modifiers>1025</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers><source-position><line>21</line><column>17</column></source-position></constructor><method><name>simpleComment</name><return-type>void</return-type><modifiers>1028</modifiers><comment><![CDATA[A simple comment.]]></comment><source-position><line>26</line><column>27</column></source-position></method><method><name>multilineComment</name><return-type>void</return-type><modifiers>1028</modifiers><comment><![CDATA[A comment which
  +   </value></annotation-value></annotation><source-position><line>62</line><column>8</column></source-position></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.Base</name><is-interface>false</is-interface><modifiers>1025</modifiers><superclass>java.lang.Object</superclass><interface>org.apache.xmlbeans.test.jam.dummyclasses.Foo</interface><field><name>doonkie</name><modifiers>2</modifiers><parameter>double</parameter><comment><![CDATA[doonkie javadoc!]]></comment><source-position><line>24</line><column>18</column></source-position></field><field><name>doonkietoo</name><modifiers>2</modifiers><parameter>long</parameter><source-position><line>25</line><column>16</column></source-position></field><constructor><modifiers>1</modifiers><source-position><line>16</line><column>17</column></source-position></constructor><method><name>getId</name><return-type>int</return-type><modifiers>1</modifiers><source-position><line>27</line><column>14</column></source-position></method><method><name>getFoo</name><return-type>java.lang.String</return-type><modifiers>1</modifiers><source-position><line>30</line><column>17</column></source-position></method><method><name>setId</name><return-type>void</return-type><modifiers>1</modifiers><parameter><name>id</name><parameter>int</parameter></parameter><source-position><line>32</line><column>15</column></source-position></method><annotation><name>author</name><annotation-value><name>value</name><value>pcal Nov 25, 2003</value></annotation-value></annotation><comment><![CDATA[Dummy class for JAM tests.]]></comment><source-position><line>16</line><column>17</column></source-position></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ejb.IEnv</name><is-interface>true</is-interface><modifiers>513</modifiers><method><name>buy</name><return-type>org.apache.xmlbeans.test.jam.dummyclasses.ejb.TradeResult</return-type><modifiers>1</modifiers><parameter><name>customerName</name><parameter>java.lang.String</parameter></parameter><parameter><name>stockSymbol</name><parameter>java.lang.String</parameter></parameter><parameter><name>shares</name><parameter>int</parameter></parameter><annotation><name>ejbgen:remote-method</name><annotation-value><name>transaction-attribute</name><value>NotSupported</value></annotation-value></annotation><source-position><line>9</line><column>22</column></source-position></method><source-position><line>3</line><column>8</column></source-position></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ManyTags</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers><source-position><line>20</line><column>8</column></source-position></constructor><method><name>getId</name><return-type>int</return-type><modifiers>1</modifiers><annotation><name>foo</name><annotation-value><name>x</name><value>-43</value></annotation-value><annotation-value><name>z</name><value>79</value></annotation-value><annotation-value><name>y</name><value>124</value></annotation-value><annotation-value><name>y</name><value>2</value></annotation-value><annotation-value><name>x</name><value>1</value></annotation-value><annotation-value><name>z</name><value>3</value></annotation-value><annotation-value><name>w</name><value>0</value></annotation-value></annotation><annotation><name>baz</name><annotation-value><name>x</name><value>1</value></annotation-value></annotation><annotation><name>bar</name><annotation-value><name>x</name><value>-4343</value></annotation-value></annotation><source-position><line>33</line><column>14</column></source-position></method><comment><![CDATA[Tests case for javadoc tags is declared more than once in a document.]]></comment><source-position><line>20</line><column>8</column></source-position></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.MyException</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Exception</superclass><constructor><modifiers>1</modifiers><source-position><line>21</line><column>8</column></source-position></constructor><annotation><name>author</name><annotation-value><name>value</name><value>Patrick Calahan &amp;lt;email: pcal-at-bea-dot-com&amp;gt;</value></annotation-value></annotation><source-position><line>21</line><column>8</column></source-position></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ValuesById</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers><source-position><line>34</line><column>8</column></source-position></constructor><annotation><name>foo</name><annotation-value><name>x</name><value>-43</value></annotation-value><annotation-value><name>z</name><value>79</value></annotation-value><annotation-value><name>y</name><value>124</value></annotation-value><annotation-value><name>y</name><value>2</value></annotation-value><annotation-value><name>x</name><value>1</value></annotation-value><annotation-value><name>z</name><value>3</value></annotation-value><annotation-value><name>w</name><value>0</value></annotation-value></annotation><annotation><name>xsdgen:type</name><annotation-value><name>target_namespace</name><value>http://www.yahoo.com</value></annotation-value><annotation-value><name>quoted_tns</name><value>http://homestarrunner.com/sbemail58.html</value></annotation-value></annotation><annotation><name>baz</name><annotation-value><name>value</name><value>I have no pairs.</value></annotation-value></annotation><annotation><name>someurl</name><annotation-value><name>value</name><value>http://www.apache.org/foo</value></annotation-value></annotation><annotation><name>bar</name><annotation-value><name>x</name><value>hello</value></annotation-value><annotation-value><name>widegetgen:name</name><value>aloha</value></annotation-value><annotation-value><name>y</name><value>goodbye</value></annotation-value></annotation><annotation><name>author</name><annotation-value><name>value</name><value>Patrick Calahan &amp;lt;email: pcal-at-bea-dot-com&amp;gt;</value></annotation-value></annotation><source-position><line>34</line><column>8</column></source-position></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.HeavilyCommented</name><is-interface>false</is-interface><modifiers>1025</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers><source-position><line>21</line><column>17</column></source-position></constructor><method><name>simpleComment</name><return-type>void</return-type><modifiers>1028</modifiers><comment><![CDATA[A simple comment.]]></comment><source-position><line>26</line><column>27</column></source-position></method><method><name>multilineComment</name><return-type>void</return-type><modifiers>1028</modifiers><comment><![CDATA[A comment which
    spans
   
    several
  
  
  
  1.3       +1 -1      xml-xmlbeans/v2/jam/test/masters/javadoc/testXmlWriter.xml
  
  Index: testXmlWriter.xml
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/jam/test/masters/javadoc/testXmlWriter.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- testXmlWriter.xml	22 Mar 2004 22:28:38 -0000	1.2
  +++ testXmlWriter.xml	23 Mar 2004 00:01:14 -0000	1.3
  @@ -18,7 +18,7 @@
   
    a few lines but also has its closing
      quote in a weird place  </value></annotation-value></annotation><annotation><name>bee</name><annotation-value><name>""</name><value>=</value></annotation-value><annotation-value><name>question</name><value>Can</value></annotation-value><annotation-value><name>we</name><value>
  -   </value></annotation-value></annotation><source-position><line>62</line><column>8</column></source-position></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.Base</name><is-interface>false</is-interface><modifiers>1025</modifiers><superclass>java.lang.Object</superclass><interface>org.apache.xmlbeans.test.jam.dummyclasses.Foo</interface><field><name>doonkie</name><modifiers>2</modifiers><parameter>double</parameter><comment><![CDATA[doonkie javadoc!]]></comment><source-position><line>24</line><column>18</column></source-position></field><field><name>doonkietoo</name><modifiers>2</modifiers><parameter>long</parameter><source-position><line>25</line><column>16</column></source-position></field><constructor><modifiers>1</modifiers><source-position><line>16</line><column>17</column></source-position></constructor><method><name>getId</name><return-type>int</return-type><modifiers>1</modifiers><source-position><line>27</line><column>14</column></source-position></method><method><name>getFoo</name><return-type>java.lang.String</return-type><modifiers>1</modifiers><source-position><line>30</line><column>17</column></source-position></method><method><name>setId</name><return-type>void</return-type><modifiers>1</modifiers><parameter><name>id</name><parameter>int</parameter></parameter><source-position><line>32</line><column>15</column></source-position></method><annotation><name>author</name><annotation-value><name>value</name><value>pcal Nov 25, 2003</value></annotation-value></annotation><comment><![CDATA[Dummy class for JAM tests.]]></comment><source-position><line>16</line><column>17</column></source-position></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ejb.IEnv</name><is-interface>true</is-interface><modifiers>513</modifiers><method><name>buy</name><return-type>org.apache.xmlbeans.test.jam.dummyclasses.ejb.TradeResult</return-type><modifiers>1</modifiers><parameter><name>customerName</name><parameter>java.lang.String</parameter></parameter><parameter><name>stockSymbol</name><parameter>java.lang.String</parameter></parameter><parameter><name>shares</name><parameter>int</parameter></parameter><annotation><name>ejbgen:remote-method</name><annotation-value><name>transaction-attribute</name><value>NotSupported</value></annotation-value></annotation><source-position><line>9</line><column>22</column></source-position></method><source-position><line>3</line><column>8</column></source-position></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ManyTags</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers><source-position><line>20</line><column>8</column></source-position></constructor><method><name>getId</name><return-type>int</return-type><modifiers>1</modifiers><annotation><name>foo</name><annotation-value><name>x</name><value>-43</value></annotation-value><annotation-value><name>z</name><value>79</value></annotation-value><annotation-value><name>y</name><value>124</value></annotation-value><annotation-value><name>y</name><value>2</value></annotation-value><annotation-value><name>x</name><value>1</value></annotation-value><annotation-value><name>z</name><value>3</value></annotation-value><annotation-value><name>w</name><value>0</value></annotation-value></annotation><annotation><name>baz</name><annotation-value><name>x</name><value>1</value></annotation-value></annotation><annotation><name>bar</name><annotation-value><name>x</name><value>-4343</value></annotation-value></annotation><source-position><line>33</line><column>14</column></source-position></method><comment><![CDATA[Tests case for javadoc tags is declared more than once in a document.]]></comment><source-position><line>20</line><column>8</column></source-position></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.MyException</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Exception</superclass><constructor><modifiers>1</modifiers><source-position><line>21</line><column>8</column></source-position></constructor><annotation><name>author</name><annotation-value><name>value</name><value>Patrick Calahan &amp;lt;email: pcal-at-bea-dot-com&amp;gt;</value></annotation-value></annotation><source-position><line>21</line><column>8</column></source-position></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ValuesById</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers><source-position><line>30</line><column>8</column></source-position></constructor><annotation><name>foo</name><annotation-value><name>x</name><value>-43</value></annotation-value><annotation-value><name>z</name><value>79</value></annotation-value><annotation-value><name>y</name><value>124</value></annotation-value><annotation-value><name>y</name><value>2</value></annotation-value><annotation-value><name>x</name><value>1</value></annotation-value><annotation-value><name>z</name><value>3</value></annotation-value><annotation-value><name>w</name><value>0</value></annotation-value></annotation><annotation><name>baz</name><annotation-value><name>value</name><value>I have no pairs.</value></annotation-value></annotation><annotation><name>bar</name><annotation-value><name>x</name><value>hello</value></annotation-value><annotation-value><name>widegetgen:name</name><value>aloha</value></annotation-value><annotation-value><name>y</name><value>goodbye</value></annotation-value></annotation><annotation><name>author</name><annotation-value><name>value</name><value>Patrick Calahan &amp;lt;email: pcal-at-bea-dot-com&amp;gt;</value></annotation-value></annotation><source-position><line>30</line><column>8</column></source-position></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.HeavilyCommented</name><is-interface>false</is-interface><modifiers>1025</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers><source-position><line>21</line><column>17</column></source-position></constructor><method><name>simpleComment</name><return-type>void</return-type><modifiers>1028</modifiers><comment><![CDATA[A simple comment.]]></comment><source-position><line>26</line><column>27</column></source-position></method><method><name>multilineComment</name><return-type>void</return-type><modifiers>1028</modifiers><comment><![CDATA[A comment which
  +   </value></annotation-value></annotation><source-position><line>62</line><column>8</column></source-position></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.Base</name><is-interface>false</is-interface><modifiers>1025</modifiers><superclass>java.lang.Object</superclass><interface>org.apache.xmlbeans.test.jam.dummyclasses.Foo</interface><field><name>doonkie</name><modifiers>2</modifiers><parameter>double</parameter><comment><![CDATA[doonkie javadoc!]]></comment><source-position><line>24</line><column>18</column></source-position></field><field><name>doonkietoo</name><modifiers>2</modifiers><parameter>long</parameter><source-position><line>25</line><column>16</column></source-position></field><constructor><modifiers>1</modifiers><source-position><line>16</line><column>17</column></source-position></constructor><method><name>getId</name><return-type>int</return-type><modifiers>1</modifiers><source-position><line>27</line><column>14</column></source-position></method><method><name>getFoo</name><return-type>java.lang.String</return-type><modifiers>1</modifiers><source-position><line>30</line><column>17</column></source-position></method><method><name>setId</name><return-type>void</return-type><modifiers>1</modifiers><parameter><name>id</name><parameter>int</parameter></parameter><source-position><line>32</line><column>15</column></source-position></method><annotation><name>author</name><annotation-value><name>value</name><value>pcal Nov 25, 2003</value></annotation-value></annotation><comment><![CDATA[Dummy class for JAM tests.]]></comment><source-position><line>16</line><column>17</column></source-position></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ejb.IEnv</name><is-interface>true</is-interface><modifiers>513</modifiers><method><name>buy</name><return-type>org.apache.xmlbeans.test.jam.dummyclasses.ejb.TradeResult</return-type><modifiers>1</modifiers><parameter><name>customerName</name><parameter>java.lang.String</parameter></parameter><parameter><name>stockSymbol</name><parameter>java.lang.String</parameter></parameter><parameter><name>shares</name><parameter>int</parameter></parameter><annotation><name>ejbgen:remote-method</name><annotation-value><name>transaction-attribute</name><value>NotSupported</value></annotation-value></annotation><source-position><line>9</line><column>22</column></source-position></method><source-position><line>3</line><column>8</column></source-position></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ManyTags</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers><source-position><line>20</line><column>8</column></source-position></constructor><method><name>getId</name><return-type>int</return-type><modifiers>1</modifiers><annotation><name>foo</name><annotation-value><name>x</name><value>-43</value></annotation-value><annotation-value><name>z</name><value>79</value></annotation-value><annotation-value><name>y</name><value>124</value></annotation-value><annotation-value><name>y</name><value>2</value></annotation-value><annotation-value><name>x</name><value>1</value></annotation-value><annotation-value><name>z</name><value>3</value></annotation-value><annotation-value><name>w</name><value>0</value></annotation-value></annotation><annotation><name>baz</name><annotation-value><name>x</name><value>1</value></annotation-value></annotation><annotation><name>bar</name><annotation-value><name>x</name><value>-4343</value></annotation-value></annotation><source-position><line>33</line><column>14</column></source-position></method><comment><![CDATA[Tests case for javadoc tags is declared more than once in a document.]]></comment><source-position><line>20</line><column>8</column></source-position></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.MyException</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Exception</superclass><constructor><modifiers>1</modifiers><source-position><line>21</line><column>8</column></source-position></constructor><annotation><name>author</name><annotation-value><name>value</name><value>Patrick Calahan &amp;lt;email: pcal-at-bea-dot-com&amp;gt;</value></annotation-value></annotation><source-position><line>21</line><column>8</column></source-position></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ValuesById</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers><source-position><line>34</line><column>8</column></source-position></constructor><annotation><name>foo</name><annotation-value><name>x</name><value>-43</value></annotation-value><annotation-value><name>z</name><value>79</value></annotation-value><annotation-value><name>y</name><value>124</value></annotation-value><annotation-value><name>y</name><value>2</value></annotation-value><annotation-value><name>x</name><value>1</value></annotation-value><annotation-value><name>z</name><value>3</value></annotation-value><annotation-value><name>w</name><value>0</value></annotation-value></annotation><annotation><name>xsdgen:type</name><annotation-value><name>target_namespace</name><value>http://www.yahoo.com</value></annotation-value><annotation-value><name>quoted_tns</name><value>http://homestarrunner.com/sbemail58.html</value></annotation-value></annotation><annotation><name>baz</name><annotation-value><name>value</name><value>I have no pairs.</value></annotation-value></annotation><annotation><name>someurl</name><annotation-value><name>value</name><value>http://www.apache.org/foo</value></annotation-value></annotation><annotation><name>bar</name><annotation-value><name>x</name><value>hello</value></annotation-value><annotation-value><name>widegetgen:name</name><value>aloha</value></annotation-value><annotation-value><name>y</name><value>goodbye</value></annotation-value></annotation><annotation><name>author</name><annotation-value><name>value</name><value>Patrick Calahan &amp;lt;email: pcal-at-bea-dot-com&amp;gt;</value></annotation-value></annotation><source-position><line>34</line><column>8</column></source-position></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.HeavilyCommented</name><is-interface>false</is-interface><modifiers>1025</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers><source-position><line>21</line><column>17</column></source-position></constructor><method><name>simpleComment</name><return-type>void</return-type><modifiers>1028</modifiers><comment><![CDATA[A simple comment.]]></comment><source-position><line>26</line><column>27</column></source-position></method><method><name>multilineComment</name><return-type>void</return-type><modifiers>1028</modifiers><comment><![CDATA[A comment which
    spans
   
    several
  
  
  
  1.3       +1 -1      xml-xmlbeans/v2/jam/test/masters/reflect/testXmlRoundtrip.xml
  
  Index: testXmlRoundtrip.xml
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/jam/test/masters/reflect/testXmlRoundtrip.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- testXmlRoundtrip.xml	22 Mar 2004 22:28:38 -0000	1.2
  +++ testXmlRoundtrip.xml	23 Mar 2004 00:01:14 -0000	1.3
  @@ -1 +1 @@
  -<jam-service><class><name>org.apache.xmlbeans.test.jam.dummyclasses.jsr175.RFEAnnotationImpl</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><interface>org.apache.xmlbeans.test.jam.dummyclasses.jsr175.RFEAnnotation</interface><constructor><modifiers>1</modifiers></constructor><method><name>annotationType</name><return-type>java.lang.Class</return-type><modifiers>1</modifiers></method><method><name>id</name><return-type>int</return-type><modifiers>1</modifiers></method><method><name>date</name><return-type>java.lang.String</return-type><modifiers>1</modifiers></method><method><name>synopsis</name><return-type>java.lang.String</return-type><modifiers>1</modifiers></method><method><name>engineer</name><return-type>java.lang.String</return-type><modifiers>1</modifiers></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ejb.TraderEJB</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><interface>org.apache.xmlbeans.test.jam.dummyclasses.ejb.IEnv</interface><constructor><modifiers>1</modifiers></constructor><method><name>buy</name><return-type>org.apache.xmlbeans.test.jam.dummyclasses.ejb.TradeResult</return-type><modifiers>1</modifiers><parameter><name>param0</name><parameter>java.lang.String</parameter></parameter><parameter><name>param1</name><parameter>java.lang.String</parameter></parameter><parameter><name>param2</name><parameter>int</parameter></parameter></method></class><class><name>org.TopLevelPackageClass</name><is-interface>true</is-interface><modifiers>1537</modifiers><method><name>getId</name><return-type>int</return-type><modifiers>1025</modifiers></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.Foo</name><is-interface>true</is-interface><modifiers>1537</modifiers><method><name>getId</name><return-type>int</return-type><modifiers>1025</modifiers></method><method><name>setId</name><return-type>void</return-type><modifiers>1025</modifiers><parameter><name>param0</name><parameter>int</parameter></parameter></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ejb.TradeResult</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers></constructor></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ejb.MyEjbException</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Exception</superclass><constructor><modifiers>1</modifiers></constructor></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.Baz</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><interface>java.lang.Runnable</interface><constructor><modifiers>1</modifiers></constructor><method><name>run</name><return-type>void</return-type><modifiers>1</modifiers></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.FooImpl</name><is-interface>false</is-interface><modifiers>1025</modifiers><superclass>org.apache.xmlbeans.test.jam.dummyclasses.Base</superclass><interface>org.apache.xmlbeans.test.jam.dummyclasses.Foo</interface><constructor><modifiers>1</modifiers></constructor><method><name>getId</name><return-type>int</return-type><modifiers>1</modifiers></method><method><name>setId</name><return-type>void</return-type><modifiers>1</modifiers><parameter><name>param0</name><parameter>int</parameter></parameter></method><method><name>setId2</name><return-type>void</return-type><modifiers>26</modifiers><parameter><name>param0</name><parameter>double</parameter></parameter></method><method><name>setId3</name><return-type>void</return-type><modifiers>36</modifiers><parameter><name>param0</name><parameter>double</parameter></parameter><parameter><name>param1</name><parameter>double</parameter></parameter></method><method><name>setId4</name><return-type>void</return-type><modifiers>1028</modifiers><parameter><name>param0</name><parameter>double</parameter></parameter><parameter><name>param1</name><parameter>double</parameter></parameter><parameter><name>param2</name><parameter>double</parameter></parameter></method><method><name>methodDealingWithArrays</name><return-type>java.lang.String[][]</return-type><modifiers>0</modifiers><parameter><name>param0</name><parameter>int[]</parameter></parameter><parameter><name>param1</name><parameter>java.lang.Object[]</parameter></parameter></method><method><name>iThrowExceptions</name><return-type>void</return-type><modifiers>1028</modifiers><parameter><name>param0</name><parameter>int</parameter></parameter><parameter><name>param1</name><parameter>java.lang.String</parameter></parameter></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.MultilineTags</name><is-interface>true</is-interface><modifiers>1537</modifiers></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.jsr175.AnnotatedClass</name><is-interface>false</is-interface><modifiers>1025</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers></constructor><method><name>getFoo</name><return-type>int</return-type><modifiers>1025</modifiers></method><method><name>setFoo</name><return-type>void</return-type><modifiers>1025</modifiers><parameter><name>param0</name><parameter>int</parameter></parameter></method><annotation><name>$Proxy3</name><annotation-value><name>hashCode</name><value>-1161457048</value></annotation-value><annotation-value><name>toString</name><value>@org.apache.xmlbeans.test.jam.dummyclasses.jsr175.RFEAnnotation(date=[unimplemented], engineer=[unassigned], id=4561414, synopsis=Balance the federal budget)</value></annotation-value><annotation-value><name>annotationType</name><value>interface org.apache.xmlbeans.test.jam.dummyclasses.jsr175.RFEAnnotation</value></annotation-value><annotation-value><name>id</name><value>4561414</value></annotation-value><annotation-value><name>date</name><value>[unimplemented]</value></annotation-value><annotation-value><name>synopsis</name><value>Balance the federal budget</value></annotation-value><annotation-value><name>engineer</name><value>[unassigned]</value></annotation-value></annotation></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.Base</name><is-interface>false</is-interface><modifiers>1025</modifiers><superclass>java.lang.Object</superclass><interface>org.apache.xmlbeans.test.jam.dummyclasses.Foo</interface><constructor><modifiers>1</modifiers></constructor><method><name>getId</name><return-type>int</return-type><modifiers>1</modifiers></method><method><name>setId</name><return-type>void</return-type><modifiers>1</modifiers><parameter><name>param0</name><parameter>int</parameter></parameter></method><method><name>getFoo</name><return-type>java.lang.String</return-type><modifiers>1</modifiers></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ejb.IEnv</name><is-interface>true</is-interface><modifiers>1537</modifiers><method><name>buy</name><return-type>org.apache.xmlbeans.test.jam.dummyclasses.ejb.TradeResult</return-type><modifiers>1025</modifiers><parameter><name>param0</name><parameter>java.lang.String</parameter></parameter><parameter><name>param1</name><parameter>java.lang.String</parameter></parameter><parameter><name>param2</name><parameter>int</parameter></parameter></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ManyTags</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers></constructor><method><name>getId</name><return-type>int</return-type><modifiers>1</modifiers></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ValuesById</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers></constructor></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.MyException</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Exception</superclass><constructor><modifiers>1</modifiers></constructor></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.HeavilyCommented</name><is-interface>false</is-interface><modifiers>1025</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers></constructor><method><name>simpleComment</name><return-type>void</return-type><modifiers>1028</modifiers></method><method><name>multilineComment</name><return-type>void</return-type><modifiers>1028</modifiers></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.jsr175.RFEAnnotation</name><is-interface>true</is-interface><modifiers>9729</modifiers><interface>java.lang.annotation.Annotation</interface><method><name>id</name><return-type>int</return-type><modifiers>1025</modifiers></method><method><name>date</name><return-type>java.lang.String</return-type><modifiers>1025</modifiers></method><method><name>synopsis</name><return-type>java.lang.String</return-type><modifiers>1025</modifiers></method><method><name>engineer</name><return-type>java.lang.String</return-type><modifiers>1025</modifiers></method><annotation><name>$Proxy0</name><annotation-value><name>hashCode</name><value>-566392314</value></annotation-value><annotation-value><name>value</name><value>RUNTIME</value></annotation-value><annotation-value><name>toString</name><value>@java.lang.annotation.Retention(value=RUNTIME)</value></annotation-value><annotation-value><name>annotationType</name><value>interface java.lang.annotation.Retention</value></annotation-value></annotation><annotation><name>$Proxy1</name><annotation-value><name>hashCode</name><value>-592721908</value></annotation-value><annotation-value><name>value</name><value>[Ljava.lang.annotation.ElementType;@861f24</value></annotation-value><annotation-value><name>toString</name><value>@java.lang.annotation.Target(value=[TYPE])</value></annotation-value><annotation-value><name>annotationType</name><value>interface java.lang.annotation.Target</value></annotation-value></annotation></class><class><name>DefaultPackageClass</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers></constructor><method><name>getId</name><return-type>int</return-type><modifiers>1</modifiers></method></class></jam-service>
  \ No newline at end of file
  +<jam-service><class><name>org.apache.xmlbeans.test.jam.dummyclasses.jsr175.RFEAnnotationImpl</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><interface>org.apache.xmlbeans.test.jam.dummyclasses.jsr175.RFEAnnotation</interface><constructor><modifiers>1</modifiers></constructor><method><name>annotationType</name><return-type>java.lang.Class</return-type><modifiers>1</modifiers></method><method><name>id</name><return-type>int</return-type><modifiers>1</modifiers></method><method><name>date</name><return-type>java.lang.String</return-type><modifiers>1</modifiers></method><method><name>synopsis</name><return-type>java.lang.String</return-type><modifiers>1</modifiers></method><method><name>engineer</name><return-type>java.lang.String</return-type><modifiers>1</modifiers></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ejb.TraderEJB</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><interface>org.apache.xmlbeans.test.jam.dummyclasses.ejb.IEnv</interface><constructor><modifiers>1</modifiers></constructor><method><name>buy</name><return-type>org.apache.xmlbeans.test.jam.dummyclasses.ejb.TradeResult</return-type><modifiers>1</modifiers><parameter><name>param0</name><parameter>java.lang.String</parameter></parameter><parameter><name>param1</name><parameter>java.lang.String</parameter></parameter><parameter><name>param2</name><parameter>int</parameter></parameter></method></class><class><name>org.TopLevelPackageClass</name><is-interface>true</is-interface><modifiers>1537</modifiers><method><name>getId</name><return-type>int</return-type><modifiers>1025</modifiers></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.Foo</name><is-interface>true</is-interface><modifiers>1537</modifiers><method><name>getId</name><return-type>int</return-type><modifiers>1025</modifiers></method><method><name>setId</name><return-type>void</return-type><modifiers>1025</modifiers><parameter><name>param0</name><parameter>int</parameter></parameter></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ejb.TradeResult</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers></constructor></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ejb.MyEjbException</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Exception</superclass><constructor><modifiers>1</modifiers></constructor></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.Baz</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><interface>java.lang.Runnable</interface><constructor><modifiers>1</modifiers></constructor><method><name>run</name><return-type>void</return-type><modifiers>1</modifiers></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.FooImpl</name><is-interface>false</is-interface><modifiers>1025</modifiers><superclass>org.apache.xmlbeans.test.jam.dummyclasses.Base</superclass><interface>org.apache.xmlbeans.test.jam.dummyclasses.Foo</interface><constructor><modifiers>1</modifiers></constructor><method><name>getId</name><return-type>int</return-type><modifiers>1</modifiers></method><method><name>setId</name><return-type>void</return-type><modifiers>1</modifiers><parameter><name>param0</name><parameter>int</parameter></parameter></method><method><name>setId2</name><return-type>void</return-type><modifiers>26</modifiers><parameter><name>param0</name><parameter>double</parameter></parameter></method><method><name>setId3</name><return-type>void</return-type><modifiers>36</modifiers><parameter><name>param0</name><parameter>double</parameter></parameter><parameter><name>param1</name><parameter>double</parameter></parameter></method><method><name>setId4</name><return-type>void</return-type><modifiers>1028</modifiers><parameter><name>param0</name><parameter>double</parameter></parameter><parameter><name>param1</name><parameter>double</parameter></parameter><parameter><name>param2</name><parameter>double</parameter></parameter></method><method><name>methodDealingWithArrays</name><return-type>java.lang.String[][]</return-type><modifiers>0</modifiers><parameter><name>param0</name><parameter>int[]</parameter></parameter><parameter><name>param1</name><parameter>java.lang.Object[]</parameter></parameter></method><method><name>iThrowExceptions</name><return-type>void</return-type><modifiers>1028</modifiers><parameter><name>param0</name><parameter>int</parameter></parameter><parameter><name>param1</name><parameter>java.lang.String</parameter></parameter></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.MultilineTags</name><is-interface>true</is-interface><modifiers>1537</modifiers></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.jsr175.AnnotatedClass</name><is-interface>false</is-interface><modifiers>1025</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers></constructor><method><name>getFoo</name><return-type>int</return-type><modifiers>1025</modifiers></method><method><name>setFoo</name><return-type>void</return-type><modifiers>1025</modifiers><parameter><name>param0</name><parameter>int</parameter></parameter></method><annotation><name>$Proxy3</name><annotation-value><name>hashCode</name><value>-1161457048</value></annotation-value><annotation-value><name>toString</name><value>@org.apache.xmlbeans.test.jam.dummyclasses.jsr175.RFEAnnotation(date=[unimplemented], engineer=[unassigned], id=4561414, synopsis=Balance the federal budget)</value></annotation-value><annotation-value><name>annotationType</name><value>interface org.apache.xmlbeans.test.jam.dummyclasses.jsr175.RFEAnnotation</value></annotation-value><annotation-value><name>id</name><value>4561414</value></annotation-value><annotation-value><name>date</name><value>[unimplemented]</value></annotation-value><annotation-value><name>synopsis</name><value>Balance the federal budget</value></annotation-value><annotation-value><name>engineer</name><value>[unassigned]</value></annotation-value></annotation></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.Base</name><is-interface>false</is-interface><modifiers>1025</modifiers><superclass>java.lang.Object</superclass><interface>org.apache.xmlbeans.test.jam.dummyclasses.Foo</interface><constructor><modifiers>1</modifiers></constructor><method><name>getId</name><return-type>int</return-type><modifiers>1</modifiers></method><method><name>setId</name><return-type>void</return-type><modifiers>1</modifiers><parameter><name>param0</name><parameter>int</parameter></parameter></method><method><name>getFoo</name><return-type>java.lang.String</return-type><modifiers>1</modifiers></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ejb.IEnv</name><is-interface>true</is-interface><modifiers>1537</modifiers><method><name>buy</name><return-type>org.apache.xmlbeans.test.jam.dummyclasses.ejb.TradeResult</return-type><modifiers>1025</modifiers><parameter><name>param0</name><parameter>java.lang.String</parameter></parameter><parameter><name>param1</name><parameter>java.lang.String</parameter></parameter><parameter><name>param2</name><parameter>int</parameter></parameter></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ManyTags</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers></constructor><method><name>getId</name><return-type>int</return-type><modifiers>1</modifiers></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ValuesById</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers></constructor></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.MyException</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Exception</superclass><constructor><modifiers>1</modifiers></constructor></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.HeavilyCommented</name><is-interface>false</is-interface><modifiers>1025</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers></constructor><method><name>simpleComment</name><return-type>void</return-type><modifiers>1028</modifiers></method><method><name>multilineComment</name><return-type>void</return-type><modifiers>1028</modifiers></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.jsr175.RFEAnnotation</name><is-interface>true</is-interface><modifiers>9729</modifiers><interface>java.lang.annotation.Annotation</interface><method><name>id</name><return-type>int</return-type><modifiers>1025</modifiers></method><method><name>date</name><return-type>java.lang.String</return-type><modifiers>1025</modifiers></method><method><name>synopsis</name><return-type>java.lang.String</return-type><modifiers>1025</modifiers></method><method><name>engineer</name><return-type>java.lang.String</return-type><modifiers>1025</modifiers></method><annotation><name>$Proxy0</name><annotation-value><name>hashCode</name><value>-566392314</value></annotation-value><annotation-value><name>value</name><value>RUNTIME</value></annotation-value><annotation-value><name>toString</name><value>@java.lang.annotation.Retention(value=RUNTIME)</value></annotation-value><annotation-value><name>annotationType</name><value>interface java.lang.annotation.Retention</value></annotation-value></annotation><annotation><name>$Proxy1</name><annotation-value><name>hashCode</name><value>-592721908</value></annotation-value><annotation-value><name>value</name><value>[Ljava.lang.annotation.ElementType;@166aa18</value></annotation-value><annotation-value><name>toString</name><value>@java.lang.annotation.Target(value=[TYPE])</value></annotation-value><annotation-value><name>annotationType</name><value>interface java.lang.annotation.Target</value></annotation-value></annotation></class><class><name>DefaultPackageClass</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers></constructor><method><name>getId</name><return-type>int</return-type><modifiers>1</modifiers></method></class></jam-service>
  \ No newline at end of file
  
  
  
  1.3       +1 -1      xml-xmlbeans/v2/jam/test/masters/reflect/testXmlWriter.xml
  
  Index: testXmlWriter.xml
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/jam/test/masters/reflect/testXmlWriter.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- testXmlWriter.xml	22 Mar 2004 22:28:38 -0000	1.2
  +++ testXmlWriter.xml	23 Mar 2004 00:01:14 -0000	1.3
  @@ -1 +1 @@
  -<jam-service><class><name>org.apache.xmlbeans.test.jam.dummyclasses.jsr175.RFEAnnotationImpl</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><interface>org.apache.xmlbeans.test.jam.dummyclasses.jsr175.RFEAnnotation</interface><constructor><modifiers>1</modifiers></constructor><method><name>annotationType</name><return-type>java.lang.Class</return-type><modifiers>1</modifiers></method><method><name>id</name><return-type>int</return-type><modifiers>1</modifiers></method><method><name>date</name><return-type>java.lang.String</return-type><modifiers>1</modifiers></method><method><name>synopsis</name><return-type>java.lang.String</return-type><modifiers>1</modifiers></method><method><name>engineer</name><return-type>java.lang.String</return-type><modifiers>1</modifiers></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ejb.TraderEJB</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><interface>org.apache.xmlbeans.test.jam.dummyclasses.ejb.IEnv</interface><constructor><modifiers>1</modifiers></constructor><method><name>buy</name><return-type>org.apache.xmlbeans.test.jam.dummyclasses.ejb.TradeResult</return-type><modifiers>1</modifiers><parameter><name>param0</name><parameter>java.lang.String</parameter></parameter><parameter><name>param1</name><parameter>java.lang.String</parameter></parameter><parameter><name>param2</name><parameter>int</parameter></parameter></method></class><class><name>org.TopLevelPackageClass</name><is-interface>true</is-interface><modifiers>1537</modifiers><method><name>getId</name><return-type>int</return-type><modifiers>1025</modifiers></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.Foo</name><is-interface>true</is-interface><modifiers>1537</modifiers><method><name>getId</name><return-type>int</return-type><modifiers>1025</modifiers></method><method><name>setId</name><return-type>void</return-type><modifiers>1025</modifiers><parameter><name>param0</name><parameter>int</parameter></parameter></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ejb.TradeResult</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers></constructor></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ejb.MyEjbException</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Exception</superclass><constructor><modifiers>1</modifiers></constructor></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.Baz</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><interface>java.lang.Runnable</interface><constructor><modifiers>1</modifiers></constructor><method><name>run</name><return-type>void</return-type><modifiers>1</modifiers></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.FooImpl</name><is-interface>false</is-interface><modifiers>1025</modifiers><superclass>org.apache.xmlbeans.test.jam.dummyclasses.Base</superclass><interface>org.apache.xmlbeans.test.jam.dummyclasses.Foo</interface><constructor><modifiers>1</modifiers></constructor><method><name>getId</name><return-type>int</return-type><modifiers>1</modifiers></method><method><name>setId</name><return-type>void</return-type><modifiers>1</modifiers><parameter><name>param0</name><parameter>int</parameter></parameter></method><method><name>setId2</name><return-type>void</return-type><modifiers>26</modifiers><parameter><name>param0</name><parameter>double</parameter></parameter></method><method><name>setId3</name><return-type>void</return-type><modifiers>36</modifiers><parameter><name>param0</name><parameter>double</parameter></parameter><parameter><name>param1</name><parameter>double</parameter></parameter></method><method><name>setId4</name><return-type>void</return-type><modifiers>1028</modifiers><parameter><name>param0</name><parameter>double</parameter></parameter><parameter><name>param1</name><parameter>double</parameter></parameter><parameter><name>param2</name><parameter>double</parameter></parameter></method><method><name>methodDealingWithArrays</name><return-type>java.lang.String[][]</return-type><modifiers>0</modifiers><parameter><name>param0</name><parameter>int[]</parameter></parameter><parameter><name>param1</name><parameter>java.lang.Object[]</parameter></parameter></method><method><name>iThrowExceptions</name><return-type>void</return-type><modifiers>1028</modifiers><parameter><name>param0</name><parameter>int</parameter></parameter><parameter><name>param1</name><parameter>java.lang.String</parameter></parameter></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.MultilineTags</name><is-interface>true</is-interface><modifiers>1537</modifiers></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.jsr175.AnnotatedClass</name><is-interface>false</is-interface><modifiers>1025</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers></constructor><method><name>getFoo</name><return-type>int</return-type><modifiers>1025</modifiers></method><method><name>setFoo</name><return-type>void</return-type><modifiers>1025</modifiers><parameter><name>param0</name><parameter>int</parameter></parameter></method><annotation><name>$Proxy3</name><annotation-value><name>hashCode</name><value>-1161457048</value></annotation-value><annotation-value><name>toString</name><value>@org.apache.xmlbeans.test.jam.dummyclasses.jsr175.RFEAnnotation(date=[unimplemented], engineer=[unassigned], id=4561414, synopsis=Balance the federal budget)</value></annotation-value><annotation-value><name>annotationType</name><value>interface org.apache.xmlbeans.test.jam.dummyclasses.jsr175.RFEAnnotation</value></annotation-value><annotation-value><name>id</name><value>4561414</value></annotation-value><annotation-value><name>date</name><value>[unimplemented]</value></annotation-value><annotation-value><name>synopsis</name><value>Balance the federal budget</value></annotation-value><annotation-value><name>engineer</name><value>[unassigned]</value></annotation-value></annotation></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.Base</name><is-interface>false</is-interface><modifiers>1025</modifiers><superclass>java.lang.Object</superclass><interface>org.apache.xmlbeans.test.jam.dummyclasses.Foo</interface><constructor><modifiers>1</modifiers></constructor><method><name>getId</name><return-type>int</return-type><modifiers>1</modifiers></method><method><name>setId</name><return-type>void</return-type><modifiers>1</modifiers><parameter><name>param0</name><parameter>int</parameter></parameter></method><method><name>getFoo</name><return-type>java.lang.String</return-type><modifiers>1</modifiers></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ejb.IEnv</name><is-interface>true</is-interface><modifiers>1537</modifiers><method><name>buy</name><return-type>org.apache.xmlbeans.test.jam.dummyclasses.ejb.TradeResult</return-type><modifiers>1025</modifiers><parameter><name>param0</name><parameter>java.lang.String</parameter></parameter><parameter><name>param1</name><parameter>java.lang.String</parameter></parameter><parameter><name>param2</name><parameter>int</parameter></parameter></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ManyTags</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers></constructor><method><name>getId</name><return-type>int</return-type><modifiers>1</modifiers></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ValuesById</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers></constructor></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.MyException</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Exception</superclass><constructor><modifiers>1</modifiers></constructor></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.HeavilyCommented</name><is-interface>false</is-interface><modifiers>1025</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers></constructor><method><name>simpleComment</name><return-type>void</return-type><modifiers>1028</modifiers></method><method><name>multilineComment</name><return-type>void</return-type><modifiers>1028</modifiers></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.jsr175.RFEAnnotation</name><is-interface>true</is-interface><modifiers>9729</modifiers><interface>java.lang.annotation.Annotation</interface><method><name>id</name><return-type>int</return-type><modifiers>1025</modifiers></method><method><name>date</name><return-type>java.lang.String</return-type><modifiers>1025</modifiers></method><method><name>synopsis</name><return-type>java.lang.String</return-type><modifiers>1025</modifiers></method><method><name>engineer</name><return-type>java.lang.String</return-type><modifiers>1025</modifiers></method><annotation><name>$Proxy0</name><annotation-value><name>hashCode</name><value>-566392314</value></annotation-value><annotation-value><name>value</name><value>RUNTIME</value></annotation-value><annotation-value><name>toString</name><value>@java.lang.annotation.Retention(value=RUNTIME)</value></annotation-value><annotation-value><name>annotationType</name><value>interface java.lang.annotation.Retention</value></annotation-value></annotation><annotation><name>$Proxy1</name><annotation-value><name>hashCode</name><value>-592721908</value></annotation-value><annotation-value><name>value</name><value>[Ljava.lang.annotation.ElementType;@861f24</value></annotation-value><annotation-value><name>toString</name><value>@java.lang.annotation.Target(value=[TYPE])</value></annotation-value><annotation-value><name>annotationType</name><value>interface java.lang.annotation.Target</value></annotation-value></annotation></class><class><name>DefaultPackageClass</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers></constructor><method><name>getId</name><return-type>int</return-type><modifiers>1</modifiers></method></class></jam-service>
  \ No newline at end of file
  +<jam-service><class><name>org.apache.xmlbeans.test.jam.dummyclasses.jsr175.RFEAnnotationImpl</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><interface>org.apache.xmlbeans.test.jam.dummyclasses.jsr175.RFEAnnotation</interface><constructor><modifiers>1</modifiers></constructor><method><name>annotationType</name><return-type>java.lang.Class</return-type><modifiers>1</modifiers></method><method><name>id</name><return-type>int</return-type><modifiers>1</modifiers></method><method><name>date</name><return-type>java.lang.String</return-type><modifiers>1</modifiers></method><method><name>synopsis</name><return-type>java.lang.String</return-type><modifiers>1</modifiers></method><method><name>engineer</name><return-type>java.lang.String</return-type><modifiers>1</modifiers></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ejb.TraderEJB</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><interface>org.apache.xmlbeans.test.jam.dummyclasses.ejb.IEnv</interface><constructor><modifiers>1</modifiers></constructor><method><name>buy</name><return-type>org.apache.xmlbeans.test.jam.dummyclasses.ejb.TradeResult</return-type><modifiers>1</modifiers><parameter><name>param0</name><parameter>java.lang.String</parameter></parameter><parameter><name>param1</name><parameter>java.lang.String</parameter></parameter><parameter><name>param2</name><parameter>int</parameter></parameter></method></class><class><name>org.TopLevelPackageClass</name><is-interface>true</is-interface><modifiers>1537</modifiers><method><name>getId</name><return-type>int</return-type><modifiers>1025</modifiers></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.Foo</name><is-interface>true</is-interface><modifiers>1537</modifiers><method><name>getId</name><return-type>int</return-type><modifiers>1025</modifiers></method><method><name>setId</name><return-type>void</return-type><modifiers>1025</modifiers><parameter><name>param0</name><parameter>int</parameter></parameter></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ejb.TradeResult</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers></constructor></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ejb.MyEjbException</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Exception</superclass><constructor><modifiers>1</modifiers></constructor></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.Baz</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><interface>java.lang.Runnable</interface><constructor><modifiers>1</modifiers></constructor><method><name>run</name><return-type>void</return-type><modifiers>1</modifiers></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.FooImpl</name><is-interface>false</is-interface><modifiers>1025</modifiers><superclass>org.apache.xmlbeans.test.jam.dummyclasses.Base</superclass><interface>org.apache.xmlbeans.test.jam.dummyclasses.Foo</interface><constructor><modifiers>1</modifiers></constructor><method><name>getId</name><return-type>int</return-type><modifiers>1</modifiers></method><method><name>setId</name><return-type>void</return-type><modifiers>1</modifiers><parameter><name>param0</name><parameter>int</parameter></parameter></method><method><name>setId2</name><return-type>void</return-type><modifiers>26</modifiers><parameter><name>param0</name><parameter>double</parameter></parameter></method><method><name>setId3</name><return-type>void</return-type><modifiers>36</modifiers><parameter><name>param0</name><parameter>double</parameter></parameter><parameter><name>param1</name><parameter>double</parameter></parameter></method><method><name>setId4</name><return-type>void</return-type><modifiers>1028</modifiers><parameter><name>param0</name><parameter>double</parameter></parameter><parameter><name>param1</name><parameter>double</parameter></parameter><parameter><name>param2</name><parameter>double</parameter></parameter></method><method><name>methodDealingWithArrays</name><return-type>java.lang.String[][]</return-type><modifiers>0</modifiers><parameter><name>param0</name><parameter>int[]</parameter></parameter><parameter><name>param1</name><parameter>java.lang.Object[]</parameter></parameter></method><method><name>iThrowExceptions</name><return-type>void</return-type><modifiers>1028</modifiers><parameter><name>param0</name><parameter>int</parameter></parameter><parameter><name>param1</name><parameter>java.lang.String</parameter></parameter></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.MultilineTags</name><is-interface>true</is-interface><modifiers>1537</modifiers></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.jsr175.AnnotatedClass</name><is-interface>false</is-interface><modifiers>1025</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers></constructor><method><name>getFoo</name><return-type>int</return-type><modifiers>1025</modifiers></method><method><name>setFoo</name><return-type>void</return-type><modifiers>1025</modifiers><parameter><name>param0</name><parameter>int</parameter></parameter></method><annotation><name>$Proxy3</name><annotation-value><name>hashCode</name><value>-1161457048</value></annotation-value><annotation-value><name>toString</name><value>@org.apache.xmlbeans.test.jam.dummyclasses.jsr175.RFEAnnotation(date=[unimplemented], engineer=[unassigned], id=4561414, synopsis=Balance the federal budget)</value></annotation-value><annotation-value><name>annotationType</name><value>interface org.apache.xmlbeans.test.jam.dummyclasses.jsr175.RFEAnnotation</value></annotation-value><annotation-value><name>id</name><value>4561414</value></annotation-value><annotation-value><name>date</name><value>[unimplemented]</value></annotation-value><annotation-value><name>synopsis</name><value>Balance the federal budget</value></annotation-value><annotation-value><name>engineer</name><value>[unassigned]</value></annotation-value></annotation></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.Base</name><is-interface>false</is-interface><modifiers>1025</modifiers><superclass>java.lang.Object</superclass><interface>org.apache.xmlbeans.test.jam.dummyclasses.Foo</interface><constructor><modifiers>1</modifiers></constructor><method><name>getId</name><return-type>int</return-type><modifiers>1</modifiers></method><method><name>setId</name><return-type>void</return-type><modifiers>1</modifiers><parameter><name>param0</name><parameter>int</parameter></parameter></method><method><name>getFoo</name><return-type>java.lang.String</return-type><modifiers>1</modifiers></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ejb.IEnv</name><is-interface>true</is-interface><modifiers>1537</modifiers><method><name>buy</name><return-type>org.apache.xmlbeans.test.jam.dummyclasses.ejb.TradeResult</return-type><modifiers>1025</modifiers><parameter><name>param0</name><parameter>java.lang.String</parameter></parameter><parameter><name>param1</name><parameter>java.lang.String</parameter></parameter><parameter><name>param2</name><parameter>int</parameter></parameter></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ManyTags</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers></constructor><method><name>getId</name><return-type>int</return-type><modifiers>1</modifiers></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.ValuesById</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers></constructor></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.MyException</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Exception</superclass><constructor><modifiers>1</modifiers></constructor></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.HeavilyCommented</name><is-interface>false</is-interface><modifiers>1025</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers></constructor><method><name>simpleComment</name><return-type>void</return-type><modifiers>1028</modifiers></method><method><name>multilineComment</name><return-type>void</return-type><modifiers>1028</modifiers></method></class><class><name>org.apache.xmlbeans.test.jam.dummyclasses.jsr175.RFEAnnotation</name><is-interface>true</is-interface><modifiers>9729</modifiers><interface>java.lang.annotation.Annotation</interface><method><name>id</name><return-type>int</return-type><modifiers>1025</modifiers></method><method><name>date</name><return-type>java.lang.String</return-type><modifiers>1025</modifiers></method><method><name>synopsis</name><return-type>java.lang.String</return-type><modifiers>1025</modifiers></method><method><name>engineer</name><return-type>java.lang.String</return-type><modifiers>1025</modifiers></method><annotation><name>$Proxy0</name><annotation-value><name>hashCode</name><value>-566392314</value></annotation-value><annotation-value><name>value</name><value>RUNTIME</value></annotation-value><annotation-value><name>toString</name><value>@java.lang.annotation.Retention(value=RUNTIME)</value></annotation-value><annotation-value><name>annotationType</name><value>interface java.lang.annotation.Retention</value></annotation-value></annotation><annotation><name>$Proxy1</name><annotation-value><name>hashCode</name><value>-592721908</value></annotation-value><annotation-value><name>value</name><value>[Ljava.lang.annotation.ElementType;@166aa18</value></annotation-value><annotation-value><name>toString</name><value>@java.lang.annotation.Target(value=[TYPE])</value></annotation-value><annotation-value><name>annotationType</name><value>interface java.lang.annotation.Target</value></annotation-value></annotation></class><class><name>DefaultPackageClass</name><is-interface>false</is-interface><modifiers>1</modifiers><superclass>java.lang.Object</superclass><constructor><modifiers>1</modifiers></constructor><method><name>getId</name><return-type>int</return-type><modifiers>1</modifiers></method></class></jam-service>
  \ No newline at end of file
  
  
  
  1.15      +31 -4     xml-xmlbeans/v2/jam/test/tests/org/apache/xmlbeans/test/jam/JamTestBase.java
  
  Index: JamTestBase.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/jam/test/tests/org/apache/xmlbeans/test/jam/JamTestBase.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- JamTestBase.java	22 Mar 2004 22:28:38 -0000	1.14
  +++ JamTestBase.java	23 Mar 2004 00:01:14 -0000	1.15
  @@ -92,8 +92,8 @@
     // ========================================================================
     // Constants
   
  -  private static final boolean CONTINUE_ON_COMPARE_FAIL = false;
  -  private static final boolean WRITE_RESULT_ON_FAIL = false;
  +  private static final boolean CONTINUE_ON_COMPARE_FAIL = true;
  +  private static final boolean WRITE_RESULT_ON_FAIL = true;
   
     private static final String WRITE_RESULT_PREFIX = "result-";
   
  @@ -253,6 +253,35 @@
                  expected.containsAll(classNames));
     }
   
  +  public void testAnnotationUrlValues() {
  +    if (!isAnnotationsAvailable()) return;
  +    JClass clazz = resolved(mLoader.loadClass(DUMMY+".ValuesById"));
  +    {
  +      final String ANN = "xsdgen:type@target_namespace";
  +      final String VAL = "http://www.yahoo.com";
  +      JAnnotationValue tns = clazz.getAnnotationValue(ANN);
  +      assertTrue("no "+ANN, tns !=  null);
  +      assertTrue(ANN+" does not equal "+VAL+", instead is '"+tns.asString(),
  +                 tns.asString().equals(VAL));
  +    }
  +    {
  +      final String ANN = "xsdgen:type@quoted_tns";
  +      final String VAL = "http://homestarrunner.com/sbemail58.html";
  +      JAnnotationValue tns = clazz.getAnnotationValue(ANN);
  +      assertTrue("no "+ANN, tns !=  null);
  +      assertTrue(ANN+" does not equal "+VAL+", instead is '"+tns.asString(),
  +                 tns.asString().equals(VAL));
  +    }
  +    {
  +      final String ANN = "someurl";
  +      final String VAL = "http://www.apache.org/foo";
  +      JAnnotationValue tns = clazz.getAnnotationValue(ANN);
  +      assertTrue("no "+ANN, tns !=  null);
  +      assertTrue(ANN+" does not equal "+VAL+", instead is '"+tns.asString(),
  +                 tns.asString().equals(VAL));
  +    }
  +  }
  +
     public void testAnnotationValuesById() {
       if (!isAnnotationsAvailable()) return;
       JClass clazz = resolved(mLoader.loadClass(DUMMY+".ValuesById"));
  @@ -453,8 +482,6 @@
       if (!isAnnotationsAvailable()) return;
       JClass mt = resolved(mLoader.loadClass(DUMMY+".MultilineTags"));
       JAnnotation ann = mt.getAllJavadocTags()[5];
  -    System.out.println("\n\n\n=== "+ann.getValue("signature").asString());
  -    System.out.println("\n\n\n=== "+ann.getValue("ejb-ql").asString());
       compare(resolved(mt), "testMultilineTags.xml");
     }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-cvs-help@xml.apache.org


Mime
View raw message