public interface AtomicSequence extends GroundedValue, java.lang.Iterable<AtomicValue>
An AtomicSequence is always represented as a GroundedValue: that is, the entire sequence
is in memory, making operations such as itemAt(int)
and getLength()
possible.
Modifier and Type | Method and Description |
---|---|
UnicodeString |
getCanonicalLexicalRepresentation()
Get the canonical lexical representation as defined in XML Schema.
|
int |
getLength()
Get the length of the sequence
|
UnicodeString |
getUnicodeStringValue()
Get a string representation of the sequence.
|
AtomicValue |
head()
Get the first item in the sequence
|
AtomicValue |
itemAt(int n)
Get the Nth item in the sequence, zero-based
|
AtomicIterator |
iterate()
Make an iterator over the items in the sequence
|
asIterable, concatenate, containsNode, effectiveBooleanValue, getStringValue, materialize, reduce, subsequence, toShortString
makeRepeatable
AtomicValue head()
head
in interface GroundedValue
head
in interface Sequence
AtomicIterator iterate()
iterate
in interface GroundedValue
iterate
in interface Sequence
AtomicValue itemAt(int n)
itemAt
in interface GroundedValue
n
- the index of the required item, with 0 representing the first item in the sequenceint getLength()
getLength
in interface GroundedValue
UnicodeString getUnicodeStringValue()
getUnicodeStringValue
in interface GroundedValue
UnicodeString getCanonicalLexicalRepresentation()
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.