3.org/TR/xpath-datamodel#dt-yearMonthDuration"> XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration.
The datatype xdt:yearMonthDuration
is a subtype of xs:duration
whose lexical representation contains only year and month components. This datatype resides in the namespace {@link javax.xml.XMLConstants#W3C_XPATH_DATATYPE_NS_URI}.
Both values are set and availabe from the created {@link Duration}
The XML Schema specification states that values can be of an arbitrary size. Implementations may chose not to or be incapable of supporting arbitrarily large and/or small values. An {@link UnsupportedOperationException} will be thrown with a message indicating implementation limitsif implementation capacities are exceeded.
@param lexicalRepresentation Lexical representation of a duration.
@return New
Duration
created using the specified
lexicalRepresentation
.
@throws IllegalArgumentException If the
lexicalRepresentation
does not conform to the specification.
@throws UnsupportedOperationException If implementation cannot support requested values.
@throws NullPointerException If
lexicalRepresentation
is
null
.