Community
Participate
Working Groups
This enhancement covers context model for the generic JAXB reference mappings, specifically: XmlID XmlIDREF See http://wiki.eclipse.org/EclipseLink/DesignDocs/277920/Phase5 for detailed info and examples for these annotations. Context model should include standard state and behavior required for validation purposes.
Also add support for @XmlAttachmentRef annotation on XmlElement and XmlAttribute mappings
Added @XmlID support to XmlElement and XmlAttribute mappings. Validation: 1. XmlID on a field/property that is not a String: XmlID is only allowed on a java.lang.String property 2. Multiple XmlIDs on 1 class: Attribute "<name>" cannot have an XmlID because attribute "<name>" already has an XmlID, cannot define multiple mappings with XmlID Added @XmlIDREF support to XmlElement and XmlAttribute mappings. Validation: 1. If the type of the attribute is Object, no validation. Otherwise the type or the Collection item type for Collections must include a property or field annotated with XmlId: Attribute "<name>" is an XmlIDREF, type "<name>" must contain a property or field annotated with @XmlId. Also added @XmlAttachmentRef support to XmlElement and XmlAttribute mappings. No corresponding validation yet.