Class TimeValue

    • Constructor Detail

      • TimeValue

        public TimeValue​(String time)
                  throws IllegalArgumentException
        Creates a new TimeAttributeValue from a string representation of time
        Parameters:
        time - string representation of time
        Throws:
        IllegalArgumentException - if time is not a valid string representation of xs:time
    • Method Detail

      • getInstance

        public static TimeValue getInstance​(XMLGregorianCalendar timeCalendar)
        Creates a new instance from a Calendar
        Parameters:
        timeCalendar - a XMLGregorianCalendar object representing the specified time; beware that this method modifies calendar by unsetting all date fields (year, month, day): e.g. for the year, calendar.setYear(DatatypeConstants.FIELD_UNDEFINED)
        Returns:
        new instance
        Throws:
        IllegalArgumentException - if calendar == null