Class Base64BinaryValue
- java.lang.Object
-
- org.ow2.authzforce.core.pdp.api.value.SimpleValue<V>
-
- org.ow2.authzforce.core.pdp.api.value.StringParseableValue<byte[]>
-
- org.ow2.authzforce.core.pdp.api.value.Base64BinaryValue
-
- All Implemented Interfaces:
AttributeValue
,PrimitiveValue
,Value
public final class Base64BinaryValue extends StringParseableValue<byte[]>
Representation of a xs:base64Binary value. This class supports parsing xs:base64Binary values. All objects of this class are immutable and all methods of the class are thread-safe. The choice of the Java type byte[] is based on JAXB schema-to-Java mapping spec: https://docs.oracle.com/javase/tutorial/jaxb/intro/bind.html- 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 Base64BinaryValue(String val)
Creates instance from lexical representation of xs:base64Binary
-
Method Summary
All 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.-
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
-
-
-
-
Constructor Detail
-
Base64BinaryValue
public Base64BinaryValue(String val) throws IllegalArgumentException
Creates instance from lexical representation of xs:base64Binary- Parameters:
val
- string representation of xs:base64Binary- Throws:
IllegalArgumentException
- ifval
is not a valid string representation for this value datatype
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classSimpleValue<byte[]>
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classSimpleValue<byte[]>
-
getXdmItem
public net.sf.saxon.s9api.XdmItem getXdmItem()
- Returns:
- corresponding XPath (XDM) value
-
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<byte[]>
- Returns:
- XML-valid lexical representation.
-
-