[JAXP-32] XMLGregorianCalendar.toXMLFormat() Variant Created: 18/Apr/07  Updated: 18/Apr/07

Status: Open
Project: jaxp
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Improvement Priority: Major
Reporter: mshaffer55 Assignee: jaxp-issues
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 32

 Description   

JAXB maps any of eight distinct XML Schema date/time types to
XMLGregorianCalendar. When an XMLGregorianCalendar is marshalled by JAXB, the
output format generated by the toXMLFormat() method should be that appropriate
for the original schema type. Currently this may or may not happen correctly,
depending on exactly which fields of the XMLGregorianCalendar have (not) been
populated by the application code.

This problem could be solved by creating a new version of
XMLGregorianCalendar.toXMLFormat(...) that takes as a parameter a QName
representing the target schema type for formatting the output. Populated fields
not relevant to the schema type would be ignored; missing fields required by the
schema type would cause an exception to be thrown.


Generated at Wed May 06 01:41:04 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.