Class GYearMonthValue

    • Constructor Detail

      • GYearMonthValue

        public GYearMonthValue()
      • GYearMonthValue

        public GYearMonthValue​(int year,
                               byte month,
                               int tz)
    • Method Detail

      • convertPrimitive

        public AtomicValue convertPrimitive​(BuiltInAtomicType requiredType,
                                            boolean validate,
                                            XPathContext context)
        Convert to target data type
        Overrides:
        convertPrimitive in class DateValue
        Parameters:
        requiredType - an integer identifying the required atomic type
        context -
        validate - true if validation is required. If set to false, the caller guarantees that the value is valid for the target data type, and that further validation is therefore not required. Note that a validation failure may be reported even if validation was not requested.
        Returns:
        an AtomicValue, a value of the required type; or an ErrorValue