Implement IZ#22838: create a Tags class with all of the element and attribute names in it. sequoia-milestone2_root
authorcliffwd@netbeans.org
Mon, 21 Jul 2003 17:29:42 +0000
changeset 1313b0c7891b0b66
parent 1312 b524d01b62da
child 1314 cdf7da7826f1
Implement IZ#22838: create a Tags class with all of the element and attribute names in it.
More fully implement the -forME flag: XSD->Java type mapping works better, and do arrays instead of java.util.List for indexed properties.
Try to make the version # the same as the NB version #.
XMLUtil's writer will now do "<foo/>" instead of "<foo></foo>".
schema2beans/test/unit/src/data/TestBook.dtd
schema2beans/test/unit/src/data/goldenfiles/TestMain/testBook.pass
schema2beans/test/unit/src/data/goldenfiles/TestMain/testContrivedApp.pass
     1.1 --- a/schema2beans/test/unit/src/data/TestBook.dtd	Thu Jul 17 19:48:42 2003 +0000
     1.2 +++ b/schema2beans/test/unit/src/data/TestBook.dtd	Mon Jul 21 17:29:42 2003 +0000
     1.3 @@ -37,6 +37,7 @@
     1.4  <!ELEMENT page (#PCDATA)>
     1.5  
     1.6  <!ELEMENT chapter (comment?, paragraph*, comment?)>
     1.7 +<!ATTLIST chapter length CDATA #IMPLIED >
     1.8  
     1.9  <!ELEMENT paragraph (#PCDATA)>
    1.10  
     2.1 --- a/schema2beans/test/unit/src/data/goldenfiles/TestMain/testBook.pass	Thu Jul 17 19:48:42 2003 +0000
     2.2 +++ b/schema2beans/test/unit/src/data/goldenfiles/TestMain/testBook.pass	Mon Jul 21 17:29:42 2003 +0000
     2.3 @@ -7,6 +7,7 @@
     2.4  			page : String
     2.5  			line : String
     2.6  	chapter : Chapter[1,n]
     2.7 +		[attr: length CDATA #IMPLIED ]
     2.8  		comment : String[0,1]
     2.9  		paragraph : String[0,n]
    2.10  		comment2 : String[0,1]
     3.1 --- a/schema2beans/test/unit/src/data/goldenfiles/TestMain/testContrivedApp.pass	Thu Jul 17 19:48:42 2003 +0000
     3.2 +++ b/schema2beans/test/unit/src/data/goldenfiles/TestMain/testContrivedApp.pass	Mon Jul 21 17:29:42 2003 +0000
     3.3 @@ -41,7 +41,7 @@
     3.4  out:   <description>J2EE Application &amp; &lt; &gt;Application_EJBModule_Entity2&lt;&gt;&amp;"'</description>
     3.5  out:   <module>
     3.6  out:     <ejb>EJBModule_Entity2.jar</ejb>
     3.7 -out:     <alt-dd></alt-dd>
     3.8 +out:     <alt-dd/>
     3.9  out:   </module>
    3.10  out: </application>
    3.11  out: TestContrivedApp - alt-dd goes away now