Class DateTimeValue

    • Constructor Detail

      • DateTimeValue

        public DateTimeValue​(String dateTime)
                      throws IllegalArgumentException
        Creates a new DateTimeAttributeValue from a string representation of date/time
        Parameters:
        dateTime - string representation of date/time
        Throws:
        IllegalArgumentException - if dateTime is not a valid string representation for this value datatype
      • DateTimeValue

        public DateTimeValue​(XMLGregorianCalendar dateTime)
                      throws IllegalArgumentException
        Creates a new DateTimeAttributeValue that represents the supplied date
        Parameters:
        dateTime - a XMLGregorianCalendar object representing the specified date and time
        Throws:
        IllegalArgumentException - if dateTime does not correspond to a valid xs:dateTime
      • DateTimeValue

        public DateTimeValue​(GregorianCalendar dateTime)
        Creates a new DateTimeAttributeValue that represents the supplied date
        Parameters:
        dateTime - a GregorianCalendar object representing the specified date and time
        Throws:
        IllegalArgumentException - if dateTime does not correspond to a valid xs:dateTime