Class YearMonthDurationValue
- java.lang.Object
-
- org.ow2.authzforce.core.pdp.api.value.SimpleValue<V>
-
- org.ow2.authzforce.core.pdp.api.value.StringParseableValue<Duration>
-
- org.ow2.authzforce.core.pdp.api.value.DurationValue<YearMonthDurationValue>
-
- org.ow2.authzforce.core.pdp.api.value.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: $
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ow2.authzforce.core.pdp.api.value.StringParseableValue
StringParseableValue.Factory<AV extends AttributeValue>
-
Nested classes/interfaces inherited from class org.ow2.authzforce.core.pdp.api.value.SimpleValue
SimpleValue.BaseFactory<AV extends AttributeValue>
-
-
Field Summary
-
Fields inherited from class org.ow2.authzforce.core.pdp.api.value.SimpleValue
value
-
-
Constructor Summary
Constructors Constructor Description YearMonthDurationValue(String value)
Instantiates year-month duration from string representation of xs:dayTimeDuration value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.sf.saxon.s9api.XdmItem
getXdmItem()
-
Methods inherited from class org.ow2.authzforce.core.pdp.api.value.DurationValue
compare, printXML
-
Methods inherited from class org.ow2.authzforce.core.pdp.api.value.StringParseableValue
getXmlAttributes
-
Methods inherited from class org.ow2.authzforce.core.pdp.api.value.SimpleValue
equals, getContent, getUnderlyingValue, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ow2.authzforce.core.pdp.api.value.PrimitiveValue
getXdmValue
-
-
-
-
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
- ifvalue
is not a valid string representation of xs:dayTimeDuration
-
-