Class DnsNameWithPortRangeValue
- 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.DnsNameWithPortRangeValue
-
- All Implemented Interfaces:
AttributeValue
,PrimitiveValue
,Value
public final class DnsNameWithPortRangeValue extends StringParseableValue<String>
Represents the DNSName datatype introduced in XACML 2.0.- 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 DnsNameWithPortRangeValue(String val)
Returns a newDNSNameAttributeValue
that represents the name indicated by theString
provided.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
String
printXML()
Converts the internal value (accessible viaSimpleValue.getUnderlyingValue()
to a valid lexical representation for XML marshalling.-
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
-
-
-
-
Constructor Detail
-
DnsNameWithPortRangeValue
public DnsNameWithPortRangeValue(String val) throws IllegalArgumentException
Returns a newDNSNameAttributeValue
that represents the name indicated by theString
provided.- Parameters:
val
- a string representing the name- Throws:
IllegalArgumentException
- if format ofval
does not comply with the dnsName datatype definition
-
-
Method Detail
-
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.
-
-