Uploaded image for project: 'DDMSence'
  1. DDMSENCE-221

Intelligent defaults with DDMS 4.1 custom date strings

    Details

    • Type: New Feature
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v2.4.0
    • Labels:
      None

      Description

      (Imported from Google Code)
      Suggested by Jeff Vettraino:

      The date attributes in the Dates component were originally standard XML date types. In DDMS 4.1, a custom date format was added.

      To support this, I originally deprecated the Dates accessors that returned attribute values as XMLGregorianCalendar instances, and instead offered a getXxxxString() accessor to get to the raw string data, unparsed.

      Jeff suggests that the DDMS 4.1 custom date format could probably be compatible with XMLGregorianCalendar by providing defaults for missing values – for example, 00 seconds when no seconds are included in the string. This would allow the original accessor methods to return an XMLGregorianCalendar instance for the DDMS custom format, and the methods would no longer need to be marked as deprecated.

      Custom date pattern:
      http://metadata.ces.mil/dse/irs/DDMS/Documentation/4/DDMS_4_1_DateHourMinType.html#Link07D50DD0

      All allowable date strings:
      http://metadata.ces.mil/dse/irs/DDMS/Documentation/4/DDMS_4_1_CombinedDateType.html

        Attachments

          Activity

            People

            • Assignee:
              buri Brian Uri
              Reporter:
              buri Brian Uri
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: