Class 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: $
    • 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 - if val is not a valid string representation for this value datatype
    • Method Detail

      • printXML

        public String printXML()
        Converts the internal value (accessible via SimpleValue.getUnderlyingValue()) to a valid lexical representation for XML marshalling. Equivalent to the 'printMethod' in JAXB 'javaType' binding customizations. Implementations of this typically call DatatypeConverter. This method is called by SimpleValue.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 class SimpleValue<byte[]>
        Returns:
        XML-valid lexical representation.