An EMPTY element from a DTD is different from a xsd:boolean. The EMPTY element doesn't have to be there.
Implement IZ#22837 with the -defaultsaccessable option.
Added a -compile option.
Implemented toString() in pure java beans.
Fixed a bug in SchemaRep that was causing a problem for XML Operations (4803685).
1.1 --- a/schema2beans/test/unit/src/data/TestBookXMLSchema.java Mon Jan 20 22:53:26 2003 +0000
1.2 +++ b/schema2beans/test/unit/src/data/TestBookXMLSchema.java Tue Jan 21 18:31:36 2003 +0000
1.3 @@ -110,7 +110,7 @@
1.4 setTest("boolean - change to false");
1.5 book.setGood(!b1);
1.6 check(b1!=book.isGood());
1.7 - out("should not have a 'good' element:",
1.8 + out("should have a 'good' element:",
1.9 book.dumpDomNode("good", 1));
1.10
1.11 setTest("boolean - change back to true");
1.12 @@ -134,7 +134,7 @@
1.13 setTest("boolean - change to same value (false)");
1.14 book.setAvailable(b1);
1.15 check(b1==book.isAvailable());
1.16 - out("should not have an 'available' element:",
1.17 + out("should have an 'available' element:",
1.18 book.dumpDomNode("available", 1));
1.19
1.20 setTest("boolean - change to true");
1.21 @@ -146,7 +146,7 @@
1.22 setTest("boolean - change back to false");
1.23 book.setAvailable(b1);
1.24 check(b1==book.isAvailable());
1.25 - out("should not have an 'available' element:",
1.26 + out("should have an 'available' element:",
1.27 book.dumpDomNode("available", 1));
1.28 }
1.29
2.1 --- a/schema2beans/test/unit/src/data/goldenfiles/TestMain/testBookXMLSchema.pass Mon Jan 20 22:53:26 2003 +0000
2.2 +++ b/schema2beans/test/unit/src/data/goldenfiles/TestMain/testBookXMLSchema.pass Tue Jan 21 18:31:36 2003 +0000
2.3 @@ -21,7 +21,8 @@
2.4 out: good - element
2.5 out:
2.6 out: TestBookXMLSchema boolean - change to false -> OK
2.7 -out: TestBookXMLSchema - should not have a 'good' element:
2.8 +out: TestBookXMLSchema - should have a 'good' element:
2.9 +out: good - element
2.10 out:
2.11 out: TestBookXMLSchema boolean - change back to true -> OK
2.12 out: TestBookXMLSchema - should have a 'good' element:
2.13 @@ -31,14 +32,16 @@
2.14 out: TestBookXMLSchema - should not have an 'available' element:
2.15 out:
2.16 out: TestBookXMLSchema boolean - change to same value (false) -> OK
2.17 -out: TestBookXMLSchema - should not have an 'available' element:
2.18 +out: TestBookXMLSchema - should have an 'available' element:
2.19 +out: available - element
2.20 out:
2.21 out: TestBookXMLSchema boolean - change to true -> OK
2.22 out: TestBookXMLSchema - should have now an 'available' element:
2.23 out: available - element
2.24 out:
2.25 out: TestBookXMLSchema boolean - change back to false -> OK
2.26 -out: TestBookXMLSchema - should not have an 'available' element:
2.27 +out: TestBookXMLSchema - should have an 'available' element:
2.28 +out: available - element
2.29 out:
2.30 out: TestBookXMLSchema - String[] - search for the string arrays
2.31 out: TestBookXMLSchema - found 3 chapter in book
2.32 @@ -252,7 +255,10 @@
2.33 out: chapter - element
2.34 out: summary - element
2.35 out: #text=This book is about avoiding summaries at the end of books - text
2.36 +out: good - element
2.37 +out: #text=false - text
2.38 out: available - element
2.39 +out: #text=true - text
2.40 out:
2.41 out: TestBookXMLSchema - Re-read the original XML file for array getter/setter testing
2.42 out: TestBookXMLSchema - creating the DOM document
3.1 --- a/schema2beans/test/unit/src/data/goldenfiles/TestMain/testWebAppDelegator.pass Mon Jan 20 22:53:26 2003 +0000
3.2 +++ b/schema2beans/test/unit/src/data/goldenfiles/TestMain/testWebAppDelegator.pass Tue Jan 21 18:31:36 2003 +0000
3.3 @@ -38,7 +38,8 @@
3.4 out: </filter>
3.5 out: <security-constraint>
3.6 out: <auth-constraint>
3.7 -out: <goodPresidentCandidate/>
3.8 +out: <goodPresidentCandidate>true</goodPresidentCandidate>
3.9 +out: <goodPresidentCandidate>false</goodPresidentCandidate>
3.10 out: </auth-constraint>
3.11 out: </security-constraint>
3.12 out: </web-app>
3.13 @@ -60,7 +61,8 @@
3.14 out: <url-pattern>*.html</url-pattern>
3.15 out: </web-resource-collection>
3.16 out: <auth-constraint>
3.17 -out: <goodPresidentCandidate/>
3.18 +out: <goodPresidentCandidate>true</goodPresidentCandidate>
3.19 +out: <goodPresidentCandidate>false</goodPresidentCandidate>
3.20 out: </auth-constraint>
3.21 out: </security-constraint>
3.22 out: </web-app>
4.1 --- a/schema2beans/test/unit/src/data/goldenfiles/TestMain/testWebAppDelegatorBaseBean.pass Mon Jan 20 22:53:26 2003 +0000
4.2 +++ b/schema2beans/test/unit/src/data/goldenfiles/TestMain/testWebAppDelegatorBaseBean.pass Tue Jan 21 18:31:36 2003 +0000
4.3 @@ -37,7 +37,8 @@
4.4 out: </filter>
4.5 out: <security-constraint>
4.6 out: <auth-constraint>
4.7 -out: <goodPresidentCandidate/>
4.8 +out: <goodPresidentCandidate>true</goodPresidentCandidate>
4.9 +out: <goodPresidentCandidate>false</goodPresidentCandidate>
4.10 out: </auth-constraint>
4.11 out: </security-constraint>
4.12 out: </web-app>
4.13 @@ -59,7 +60,8 @@
4.14 out: <url-pattern>*.html</url-pattern>
4.15 out: </web-resource-collection>
4.16 out: <auth-constraint>
4.17 -out: <goodPresidentCandidate/>
4.18 +out: <goodPresidentCandidate>true</goodPresidentCandidate>
4.19 +out: <goodPresidentCandidate>false</goodPresidentCandidate>
4.20 out: </auth-constraint>
4.21 out: </security-constraint>
4.22 out: </web-app>