| Summary: | JSON Unmarshal - support for namespaces | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Denise Smith <denise.mahar> |
| Component: | Eclipselink | Assignee: | Denise Smith <denise.mahar> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | blaise.doughan, eclipselink.oxm-inbox |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
| Attachments: | |||
|
Description
Denise Smith
Created attachment 200473 [details]
Proposed changes and tests
Created attachment 203021 [details]
Updated support for users to supply a Map of prefix/uris
Created attachment 203022 [details]
Updated support for users to supply a Map of prefix/uris
Created attachment 203023 [details]
Updated support for users to supply a Map of prefix/uris
Created attachment 203032 [details]
Updated support for users to supply a Map of prefix/uris
Created attachment 203066 [details]
Update patch after review
Created attachment 203081 [details]
Updated patch after review
Created attachment 210824 [details]
Updated changes
Created attachment 210826 [details]
Updated changes - test cases
Created attachment 210997 [details]
Updated changed to make use of namespace prefix mapper code
Checked in support for marshal and unmarshal of namespaces in JSON. To set unmarshal namespaces use:
Map namespaces = new HashMap<String, String>();
namespaces.put("namespace1", "ns1");
namespaces.put("namespace2", "ns2");
jsonUnmarshaller.setProperty(JAXBContext.JSON_NAMESPACE_PREFIX_MAPPER, namespaces);
And on the marshaller
jsonMarshaller.setProperty(JAXBContext.NAMESPACE_PREFIX_MAPPER, namespaces)
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |