Interface ValueRepresentation<T extends Item>

    • Field Detail

      • EMPTY_VALUE_ARRAY

        static final ValueRepresentation[] EMPTY_VALUE_ARRAY
        An empty array of ValueRepresentation objects
    • Method Detail

      • getStringValue

        java.lang.String getStringValue()
                                 throws XPathException
        Convert the value to a string, using the serialization rules. For atomic values this is the same as a cast; for sequence values it gives a space-separated list. For nodes, it returns the string value of the node as defined in XDM.
        Returns:
        the result of converting the value to a string
        Throws:
        XPathException - The method can fail if evaluation of the value has been deferred, and if a failure occurs during the deferred evaluation. It can also occur for values such as function items and maps that have no string value. No failure is possible in the case of an AtomicValue or a Node.
      • getStringValueCS

        java.lang.CharSequence getStringValueCS()
                                         throws XPathException
        Convert the value to a string, using the serialization rules, and returning the result as a CharSequence. In some cases this may be more efficient than obtaining the result as a string. For atomic values the result is the same as a cast; for sequence values it gives a space-separated list. For nodes, it returns the string value of the node as defined in XDM.
        Returns:
        the result of converting the value to a string
        Throws:
        XPathException - The method can fail if evaluation of the value has been deferred, and if a failure occurs during the deferred evaluation. It can also occur for values such as function items and maps that have no string value. No failure is possible in the case of an AtomicValue or a Node.