Class GDayValue

    • Method Detail

      • copyAsSubType

        public AtomicValue copyAsSubType​(AtomicType typeLabel)
        Make a copy of this date, time, or dateTime value
        Specified by:
        copyAsSubType in class AtomicValue
        typeLabel - the type label of the new copy. The caller is responsible for checking that the value actually conforms to this type.
        the copied value
      • getPrimitiveType

        public BuiltInAtomicType getPrimitiveType()
        Determine the primitive type of the value. This delivers the same answer as getItemType().getPrimitiveItemType(). The primitive types are the 19 primitive types of XML Schema, plus xs:integer, xs:dayTimeDuration and xs:yearMonthDuration, and xs:untypedAtomic. For external objects, the result is AnyAtomicType.
        Specified by:
        getPrimitiveType in class AtomicValue
        the primitive type
      • getPrimitiveStringValue

        public UnicodeString getPrimitiveStringValue()
        Description copied from class: AtomicValue
        Convert the value to a string, using the serialization rules for the primitive type. This is the result of conversion to a string except that postprocessing defined by the saxon:preprocess facet is not (yet) applied.
        Specified by:
        getPrimitiveStringValue in class AtomicValue
        the value converted to a string according to the rules for the primitive type
      • add

        public CalendarValue add​(DurationValue duration)
                          throws XPathException
        Add a duration to this date/time value
        Specified by:
        add in class CalendarValue
        duration - the duration to be added (which might be negative)
        a new date/time value representing the result of adding the duration. The original object is not modified.
        XPathException - if an error is detected
      • adjustTimezone

        public CalendarValue adjustTimezone​(int tz)
        Return a new date, time, or dateTime with the same normalized value, but in a different timezone
        Specified by:
        adjustTimezone in class CalendarValue
        tz - the new timezone, in minutes
        the date/time in the new timezone