Community
Participate
Working Groups
This enhancement covers context model for the generic JAXB containment mappings, specifically: XmlAttribute XmlElement XmlAdapter See http://wiki.eclipse.org/EclipseLink/DesignDocs/277920/Phase3 for detailed info and examples for these annotations. Context model should include standard state and behavior required for validation purposes.
I added validation for XmlJavaTypeAdapter on a package and on an attribute. 1.If you specify an @XmlJavaTypeAdapter on a package and don't specify the type element, you get this validation message: 'The type must be specified for an XML Java type adapter on a package' 2.If you specify an @XmlJavaTypeAdapter on an attribute with a non-generic List or Collection and don't specify the type element, you get this validation message: 'The type for XML Java type adapter is not defined' Here are 2 examples: @XmlAttribute @XmlJavaTypeAdapter(value=MyAdapter.class) public List foo; @XmlAttribute @XmlJavaTypeAdapter(value=MyAdapter.class) public List getFoo() { return this.foo; }
This bug has been completed for 3.0M5. Remaining issues are logged for validation (bug 335731, bug 333484), icons (bug 333664), XmlElement default mapping (bug 335697)