Class XSDAbstractDateTimeType

    • Field Detail

      • YEAR_MASK

        public static final short YEAR_MASK
        Mask to indicate whether year is present
        See Also:
        Constant Field Values
      • MONTH_MASK

        public static final short MONTH_MASK
        Mask to indicate whether month is present
        See Also:
        Constant Field Values
      • DAY_MASK

        public static final short DAY_MASK
        Mask to indicate whether day is present
        See Also:
        Constant Field Values
      • TIME_MASK

        public static final short TIME_MASK
        Mask to indicate whether time is present
        See Also:
        Constant Field Values
      • FULL_MASK

        public static final short FULL_MASK
        Mask to indicate all date/time are present
        See Also:
        Constant Field Values
    • Constructor Detail

      • XSDAbstractDateTimeType

        public XSDAbstractDateTimeType​(java.lang.String typename)
        Constructor
    • Method Detail

      • isDigit

        public static final boolean isDigit​(char ch)
      • getDigit

        public static final int getDigit​(char ch)
      • dateToString

        public java.lang.String dateToString​(int[] date)
      • appendFractionalTime

        public static void appendFractionalTime​(java.lang.StringBuffer buff,
                                                int fsec,
                                                int scale)
        Append the fraction time part of a date/time vector to a string buffer.
      • normalizeSubType

        public RDFDatatype normalizeSubType​(java.lang.Object value,
                                            RDFDatatype dt)
        Normalization. If the value is narrower than the current data type (e.g. value is xsd:date but the time is xsd:datetime) returns the narrower type for the literal. If the type is narrower than the value then it may normalize the value (e.g. set the mask of an XSDDateTime) Currently only used to narrow gener XSDDateTime objects to the minimal XSD date/time type.
        Specified by:
        normalizeSubType in interface RDFDatatype
        Overrides:
        normalizeSubType in class BaseDatatype
        Parameters:
        value - the current object value
        dt - the currently set data type
        Returns:
        a narrower version of the datatype based on the actual value range