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, toShortStringmakeRepeatableAtomicValue head()
head in interface GroundedValuehead in interface SequenceAtomicIterator iterate()
iterate in interface GroundedValueiterate in interface SequenceAtomicValue itemAt(int n)
itemAt in interface GroundedValuen - the index of the required item, with 0 representing the first item in the sequenceint getLength()
getLength in interface GroundedValueUnicodeString getUnicodeStringValue()
getUnicodeStringValue in interface GroundedValueUnicodeString getCanonicalLexicalRepresentation()
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.