Community
Participate
Working Groups
1.If the type of the field or property is a collection type, then the collection item type must map to a simple schema type. Examples: // Examples (not exhaustive): Legal usage of @XmlValue @XmlValue List<Integer> foo; // int maps to xs:int @XmlValue String[] foo; // String maps to xs:string @XmlValue List<Bar> foo; // only if Bar maps to a simple schema type 2.If the type of the field or property is not a collection type, then the type of the property or field must map to a schema simple type. 3.Validation for these statements from the spec. I'm getting feedback from Blaise on whether the second statement is invalid, since they conflict. An XML-bound class would be one that is in the JAXB context and not annotated with @XmlTransient. *If the class, subClass, derives from another XML-bound class, baseClass directly or indirectly (other than java.lang.Object), then the subClass must not contain a mapped property or field annotated with @XmlValue annotation. *The containing class must not extend another class (other than java.lang.Obect).
*** Bug 348288 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 348288 ***