Class IpAddressValue
- java.lang.Object
-
- org.ow2.authzforce.core.pdp.api.value.SimpleValue<V>
-
- org.ow2.authzforce.core.pdp.api.value.StringParseableValue<String>
-
- org.ow2.authzforce.core.pdp.api.value.IpAddressValue
-
- All Implemented Interfaces:
AttributeValue
,PrimitiveValue
,Value
public final class IpAddressValue extends StringParseableValue<String>
Represents the IPAddress datatype introduced in XACML 2.0. All objects of this class are immutable and all methods of the class are thread-safe.- 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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
net.sf.saxon.s9api.XdmItem
getXdmItem()
int
hashCode()
String
printXML()
Converts the internal value (accessible viaSimpleValue.getUnderlyingValue()
) to a valid lexical representation for XML marshalling.static IpAddressValue
valueOf(String val)
Instantiates from string representation-
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
getContent, getUnderlyingValue, 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
-
-
-
-
Method Detail
-
valueOf
public static IpAddressValue valueOf(String val) throws IllegalArgumentException
Instantiates from string representation- Parameters:
val
- string form of IP address- Throws:
IllegalArgumentException
- ifval
is not a valid XACML IPAddress string
-
getXdmItem
public net.sf.saxon.s9api.XdmItem getXdmItem()
- Returns:
- corresponding XPath (XDM) value
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classSimpleValue<String>
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classSimpleValue<String>
-
printXML
public String printXML()
Converts the internal value (accessible viaSimpleValue.getUnderlyingValue()
) to a valid lexical representation for XML marshalling. Equivalent to the 'printMethod' in JAXB 'javaType' binding customizations. Implementations of this typically callDatatypeConverter
. This method is called bySimpleValue.getContent()
and its result cached by the same method for later use. Therefore, no need to cache the result in the implementation.- Specified by:
printXML
in classSimpleValue<String>
- Returns:
- XML-valid lexical representation.
-
-