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/src/binding/org/apache/xmlbeans/impl/binding/compile Java2Schema_new.java
Date Mon, 22 Mar 2004 22:28:38 GMT
pcal        2004/03/22 14:28:38

  Modified:    v2/jam/src/org/apache/xmlbeans/impl/jam
                        JAnnotatedElement.java
               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/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
               v2/src/binding/org/apache/xmlbeans/impl/binding/compile
                        Java2Schema_new.java
  Added:       v2/jam/test/dummyclasses/org/apache/xmlbeans/test/jam/dummyclasses
                        ValuesById.java
  Log:
  java2schema, jam updates and tests
  
  Revision  Changes    Path
  1.5       +11 -2     xml-xmlbeans/v2/jam/src/org/apache/xmlbeans/impl/jam/JAnnotatedElement.java
  
  Index: JAnnotatedElement.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/jam/src/org/apache/xmlbeans/impl/jam/JAnnotatedElement.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- JAnnotatedElement.java	19 Mar 2004 04:17:52 -0000	1.4
  +++ JAnnotatedElement.java	22 Mar 2004 22:28:38 -0000	1.5
  @@ -48,8 +48,17 @@
      */
     public JAnnotation getAnnotation(String tagnameProxynameOr175typename);
   
  -  //docme
  -  public JAnnotationValue getAnnotationValue(String name);
  +
  +  /**
  +   * Shortcut method which returns a given annotation value.  The 'valueId'
  +   * should be a string of the format 'annotation-name@value-name'.  The
  +   * value-name may be ommitted; if it is, it defaults to
  +   * JAnntoation.SINGLE_MEMBER_VALUE.
  +   *
  +   * @param valueId
  +   * @return
  +   */
  +  public JAnnotationValue getAnnotationValue(String valueId);
   
     /**
      * <p>Returns the comment associated with this abstraction.
  
  
  
  1.8       +2 -0      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.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- AnnotationProxy.java	22 Mar 2004 01:45:49 -0000	1.7
  +++ AnnotationProxy.java	22 Mar 2004 22:28:38 -0000	1.8
  @@ -184,6 +184,8 @@
   
     public void initFromJavadocTag(String tagline) {
       if (tagline == null) throw new IllegalArgumentException("null tagline");
  +    tagline = tagline.trim();
  +    if (tagline.length() == 0) return;
       Properties props = new Properties();
       parseAssignments(props,tagline);
       if (props.size() == 0) {
  
  
  
  1.12      +17 -7     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.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- AnnotatedElementImpl.java	20 Mar 2004 21:51:34 -0000	1.11
  +++ AnnotatedElementImpl.java	22 Mar 2004 22:28:38 -0000	1.12
  @@ -54,15 +54,25 @@
       return getMutableAnnotation(named);
     }
   
  -  public JAnnotationValue getAnnotationValue(String valueName) {
  +  public JAnnotationValue getAnnotationValue(String valueId) {
       if (mName2Annotation == null) return null;
  -    int delim = valueName.indexOf('@');
  -    if (delim == -1) {
  -      throw new IllegalArgumentException("value identifiers must include an '@'"+
  -                                         valueName);
  +    valueId = valueId.trim();
  +
  +    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));
       }
  -    JAnnotation out = getAnnotation(valueName.substring(0,delim));
  -    return out.getValue(valueName.substring(delim+1));
     }
   
   
  
  
  
  1.1                  xml-xmlbeans/v2/jam/test/dummyclasses/org/apache/xmlbeans/test/jam/dummyclasses/ValuesById.java
  
  Index: ValuesById.java
  ===================================================================
  /*   Copyright 2004 The Apache Software Foundation
   *
   *   Licensed under the Apache License, Version 2.0 (the "License");
   *   you may not use this file except in compliance with the License.
   *   You may obtain a copy of the License at
   *
   *       http://www.apache.org/licenses/LICENSE-2.0
   *
   *   Unless required by applicable law or agreed to in writing, software
   *   distributed under the License is distributed on an "AS IS" BASIS,
   *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   *   See the License for the specific language governing permissions and
   *  limitations under the License.
   */
  package org.apache.xmlbeans.test.jam.dummyclasses;
  
  /**
   * @foo x=-43 y=124 z=79
   * @foo y=2
   * @foo z=3
   * x=1
   * @foo w = 0
   *
   * @bar   x="hello"    y="goodbye"   widegetgen:name="aloha"
   *
   * @baz I have no pairs.
   *
   * @author Patrick Calahan &lt;email: pcal-at-bea-dot-com&gt;
   */
  public class ValuesById {
  }
  
  
  
  1.2       +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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- testXmlRoundtrip.xml	22 Mar 2004 07:32:38 -0000	1.1
  +++ testXmlRoundtrip.xml	22 Mar 2004 22:28:38 -0000	1.2
  @@ -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.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>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
    spans
   
    several
  
  
  
  1.2       +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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- testXmlWriter.xml	22 Mar 2004 07:32:38 -0000	1.1
  +++ testXmlWriter.xml	22 Mar 2004 22:28:38 -0000	1.2
  @@ -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.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>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
    spans
   
    several
  
  
  
  1.2       +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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- testXmlRoundtrip.xml	22 Mar 2004 07:32:38 -0000	1.1
  +++ testXmlRoundtrip.xml	22 Mar 2004 22:28:38 -0000	1.2
  @@ -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.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;@1b9ce4b</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;@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
  
  
  
  1.2       +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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- testXmlWriter.xml	22 Mar 2004 07:32:38 -0000	1.1
  +++ testXmlWriter.xml	22 Mar 2004 22:28:38 -0000	1.2
  @@ -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.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;@1b9ce4b</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;@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
  
  
  
  1.14      +39 -1     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.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- JamTestBase.java	22 Mar 2004 07:32:38 -0000	1.13
  +++ JamTestBase.java	22 Mar 2004 22:28:38 -0000	1.14
  @@ -123,7 +123,8 @@
       DUMMY+".HeavilyCommented",
       DUMMY+".MyException",
       DUMMY+".MultilineTags",
  -    DUMMY+".ManyTags"
  +    DUMMY+".ManyTags",
  +    DUMMY+".ValuesById"
     };
   
   
  @@ -250,6 +251,43 @@
                  classNames.containsAll(expected));
       assertTrue("result contains more than expected classes",
                  expected.containsAll(classNames));
  +  }
  +
  +  public void testAnnotationValuesById() {
  +    if (!isAnnotationsAvailable()) return;
  +    JClass clazz = resolved(mLoader.loadClass(DUMMY+".ValuesById"));
  +    assertTrue("value id foo has unexpected single-member value",
  +               clazz.getAnnotationValue("foo") == null);
  +    {
  +      final String ANN = "bar@x";
  +      final String VAL = "hello";
  +      JAnnotationValue barx = clazz.getAnnotationValue(ANN);
  +      assertTrue("no "+ANN, barx !=  null);
  +      assertTrue(ANN+" does not equal "+VAL+", instead is '"+barx.asString(),
  +                 barx.asString().equals(VAL));
  +    }
  +    {
  +      final String ANN = "bar@y";
  +      final String VAL = "goodbye";
  +      JAnnotationValue bary = clazz.getAnnotationValue(ANN);
  +      assertTrue("no "+ANN, bary !=  null);
  +      assertTrue(ANN+" does not equal "+VAL+", instead is '"+bary.asString(),
  +                 bary.asString().equals(VAL));
  +    }
  +    {
  +      final String ANN = "baz";
  +      final String VAL = "I have no pairs.";
  +      JAnnotationValue val = clazz.getAnnotationValue(ANN);
  +      assertTrue("no "+ANN, val !=  null);
  +      assertTrue(ANN+" does not equal "+VAL+", instead is '"+val.asString(),
  +                 val.asString().equals(VAL));
  +    }
  +    {
  +      JAnnotationValue widget = clazz.getAnnotationValue("bar@widegetgen:name");
  +      assertTrue("no bar@widegentgen:name", widget !=  null);
  +      assertTrue("bar@widegetgen:name does not equal aloha",widget.asString().equals("aloha"));
  +    }
  +    assertTrue(clazz.getAnnotationValue("nothinghere") == null);
     }
   
     public void testXmlWriter() throws XMLStreamException, IOException
  
  
  
  1.4       +1 -0      xml-xmlbeans/v2/src/binding/org/apache/xmlbeans/impl/binding/compile/Java2Schema_new.java
  
  Index: Java2Schema_new.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/src/binding/org/apache/xmlbeans/impl/binding/compile/Java2Schema_new.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Java2Schema_new.java	22 Mar 2004 07:32:38 -0000	1.3
  +++ Java2Schema_new.java	22 Mar 2004 22:28:38 -0000	1.4
  @@ -18,6 +18,7 @@
   import org.apache.xmlbeans.impl.binding.bts.*;
   import org.apache.xmlbeans.impl.binding.tylar.TylarWriter;
   import org.apache.xmlbeans.impl.jam.*;
  +import org.apache.xmlbeans.impl.jam.visitor.MVisitor;
   import org.apache.xmlbeans.impl.common.XMLChar;
   import org.w3.x2001.xmlSchema.*;
   import javax.xml.namespace.QName;
  
  
  

---------------------------------------------------------------------
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