Class XMLDateTime

    • Constructor Detail

      • XMLDateTime

        public XMLDateTime​(String dateTimeString)
        Creates a new XMLDateTime object for the supplied xsd:dateTime string value.
        Parameters:
        dateTimeString - An xsd:dateTime lexical value, for example 1999-05-31T13:20:00-05:00.
        Throws:
        IllegalArgumentException - if the supplied lexical value does not constitute a valid xsd:dateTime.
    • Method Detail

      • isNormalized

        public boolean isNormalized()
        Checks whether this object has already been normalized.
      • normalize

        public void normalize()
        Normalizes this dateTime object.
      • toString

        public String toString()
        Returns the xsd:dateTime string-representation of this object.
        Overrides:
        toString in class Object
        Returns:
        An xsd:dateTime value, e.g. 1999-05-31T13:20:00-05:00.