Interface AtomicSequence

    • Method Detail

      • head

        AtomicValue head()
        Get the first item in the sequence
        Specified by:
        head in interface GroundedValue
        Specified by:
        head in interface Sequence
        Returns:
        the first item in the sequence, or null if the sequence is empty
      • itemAt

        AtomicValue itemAt​(int n)
        Get the Nth item in the sequence, zero-based
        Specified by:
        itemAt in interface GroundedValue
        Parameters:
        n - the index of the required item, with 0 representing the first item in the sequence
        Returns:
        the Nth item in the sequence, or null if the index is out of range
      • getLength

        int getLength()
        Get the length of the sequence
        Specified by:
        getLength in interface GroundedValue
        Returns:
        the number of items in the sequence
      • getUnicodeStringValue

        UnicodeString getUnicodeStringValue()
        Get a string representation of the sequence. The is the space-separated concatenation of the result of casting each of the items in the sequence to xs:string
        Specified by:
        getUnicodeStringValue in interface GroundedValue
        Returns:
        a whitespace-separated concatenation of the string values of the items making up the sequence, as a String.
      • getCanonicalLexicalRepresentation

        UnicodeString getCanonicalLexicalRepresentation()
        Get the canonical lexical representation as defined in XML Schema. This is not always the same as the result of casting to a string according to the XPath rules.
        Returns:
        the canonical lexical representation if defined in XML Schema; otherwise, the result of casting to string according to the XPath 2.0 rules