jaxp
  1. jaxp
  2. JAXP-32

XMLGregorianCalendar.toXMLFormat() Variant

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • 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.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            jaxp-issues
            Reporter:
            mshaffer55
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: