File tree Expand file tree Collapse file tree
sources/net.sf.j2s.java.core/src/test/jaxb Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77import javax .xml .bind .annotation .XmlAttribute ;
88import javax .xml .bind .annotation .XmlElement ;
99import javax .xml .bind .annotation .XmlRootElement ;
10+ import javax .xml .bind .annotation .XmlType ;
1011
1112/**
1213 * Status: marshalling/unmarshalling working perfectly
3233 * @author hansonr
3334 *
3435 */
35- @ XmlRootElement (name = "RootNone" , namespace = "www.jalview.org " )
36+ @ XmlRootElement (name = "RootNone" ,namespace = "root.element " )
3637@ XmlAccessorType (XmlAccessType .NONE )
3738public class Root_NONE {
3839
39- public Root_NONE () {
40+ @ XmlType (name ="" )
41+ static class Inner {
42+ @ XmlElement (namespace ="" )
43+ public String innerString = "innerString" ;
44+ }
45+
46+ @ XmlElement (name ="inner_1" )
47+ private Inner inner = new Inner ();
48+
49+ public Root_NONE () {
4050
4151 }
4252
@@ -66,8 +76,12 @@ public void setPropertyAng(String a) {
6676 Ang = a ;
6777 }
6878
69- @ XmlAttribute
70- public int pi1a , pi2a , pi3a = 3 ;
79+ @ XmlAttribute (name ="pi1a" )
80+ public int pi1a ;
81+ @ XmlAttribute (name ="pi2a" )
82+ public int pi2a ;
83+ @ XmlAttribute (name ="pi3a" )
84+ public int pi3a ;
7185//<ns2:Root xmlns:ns2="www.jalview.org" pi1A="0" pi2A="0" pi3A="3">
7286
7387 // ignored - not tagged
You can’t perform that action at this time.
0 commit comments