| Summary: | Model and validation support for XmlJavaTypeAdapter | ||
|---|---|---|---|
| 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 | Keywords: | plan |
| Target Milestone: | 3.1 M3 | ||
| Hardware: | PC | ||
| OS: | Windows Vista | ||
| Whiteboard: | |||
|
Description
Paul Fullbright
In particular, it is important to note that an XmlAdapter transforms the type of the java attribute from its declared type to a type determined by the adapter implementation. Much validation of other annotations depends on this attribute type being interpreted correctly. Added support for adapting attributes whether the annotation is on: - the attribute itself - the class to be adapted - the package containing the attribute - the package containing the class to be adapted Validation proved trickier. We added the adapted-*to* type to the JAXB context, and that applies default mapping information, so any validation of *that* type will be performed. But pretty much any type will automatically be mapped, so beyond that, there's not much to be done. Support added for 3.1 M3 |