Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348113

Summary: [Validation] @XmlElementRefs validation and content assist
Product: [WebTools] Dali JPA Tools Reporter: Paul Fullbright <paul.fullbright>
Component: JAXBAssignee: Neil Hauge <neil.hauge>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: neil.hauge
Version: 3.0   
Target Milestone: 3.1 M2   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Paul Fullbright CLA 2011-06-02 13:39:05 EDT
From the JAXB 2.2 spec (8.9.4.2)

- The only other additional JAXB mapping annotations allowed with @XmlElementRefs are: @XmlElementWrapper and @XmlJavaTypeAdapter.

Some investigation is needed to see whether validation and content assist for
the individual @XmlElementRef annotations within @XmlElementRefs differ significantly from validation and content assist for an @XmlElementRef by itself.
Comment 1 Paul Fullbright CLA 2011-09-09 15:22:26 EDT
@XmlElementRefs are validating the same way as @XmlElementRef annotations singularly, with the added validations of preventing duplicate (JAXBElement) names and duplicate (non-JAXBElement) types in a list.

Also completed validation and content assist for @XmlElementRefs within an @XmlAnyElement mapping.