Class Time

  • All Implemented Interfaces:
    OdfDataType

    public class Time
    extends Object
    implements OdfDataType
    This class represents the in OpenDocument format used data type time
    • Method Detail

      • toString

        public String toString()
        Returns a String Object representing this Time value
        Overrides:
        toString in class Object
        Returns:
        return a string representation of the value of this Time object
      • valueOf

        public static Time valueOf​(String stringValue)
                            throws IllegalArgumentException
        Returns a Time instance representing the specified String value
        Parameters:
        stringValue - a String value
        Returns:
        return a Time instance representing stringValue
        Throws:
        IllegalArgumentException - if the given argument is not a valid Time
      • getXMLGregorianCalendar

        public XMLGregorianCalendar getXMLGregorianCalendar()
        Returns the value of this Time object as an XMLGregorianCalendar
        Returns:
        the XMLGregorianCalendar value of this Time object.
      • isValid

        public static boolean isValid​(XMLGregorianCalendar time)
        check if the specified XMLGregorianCalendar instance is a valid time data type
        Parameters:
        time - the value to be tested
        Returns:
        true if the value of argument is valid for time data type false otherwise