Class YearMonthDurationValue

  • All Implemented Interfaces:
    AttributeValue, PrimitiveValue, Value

    public final class YearMonthDurationValue
    extends DurationValue<YearMonthDurationValue>
    Representation of a xs:yearMonthDuration value. This class supports parsing xs:yearMonthDuration values. All objects of this class are immutable and thread-safe. The choice of the Java type Duration is based on JAXB schema-to-Java mapping spec: https://docs.oracle.com/javase/tutorial/jaxb/intro/bind.html and documentation of javax.xml.datatype package.
    Version:
    $Id: $
    • Constructor Detail

      • YearMonthDurationValue

        public YearMonthDurationValue​(String value)
                               throws IllegalArgumentException
        Instantiates year-month duration from string representation of xs:dayTimeDuration value.
        Parameters:
        value - a string representing the desired duration
        Throws:
        IllegalArgumentException - if value is not a valid string representation of xs:dayTimeDuration
    • Method Detail

      • getXdmItem

        public net.sf.saxon.s9api.XdmItem getXdmItem()
        Returns:
        corresponding XPath (XDM) value