| Summary: | [Validation] @XmlEnum/@XmlEnumValue validation and content assist | ||
|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Paul Fullbright <paul.fullbright> |
| Component: | JAXB | Assignee: | Paul Fullbright <paul.fullbright> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | neil.hauge |
| Version: | 3.0 | ||
| Target Milestone: | 3.1 M3 | ||
| Hardware: | PC | ||
| OS: | Windows Vista | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 327929 | ||
|
Description
Paul Fullbright
XmlEnum needs no further content assist. XmlEnumValue needs the following content assist: - if the schema type resolves to a valid enumerated simple type, the values of the type should be given as completion proposals Added validation for: - XmlEnum value should map to a simple schema type - XmlEnumValue value should be a valid lexical value for the enum's schema type Added content assist for: - XmlEnumValue value when enum's schema type has enumeration values Chose not to add validation for: - XmlEnum.value should match the java type binding of the simple type definition [The value is always a String type in code. Lexical validation was added instead.] - the type mapped by an enum *should* be an enumerated simple type, but may not be in certain situations (probably a warning) [It is entirely valid to write out xml with enumerated values, even if it isn't a schema constraint.] It is also intentional that no validation was added for *duplicate* XmlEnumValue values, since neither the RI nor MOXy complained in this scenario. Committed for 3.1 M3 |