public interface AtomicSequence extends Sequence, 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 |
|---|---|
java.lang.CharSequence |
getCanonicalLexicalRepresentation()
Get the canonical lexical representation as defined in XML Schema.
|
int |
getLength()
Get the length of the sequence
|
java.lang.Comparable |
getSchemaComparable()
Get a Comparable value that implements the XML Schema ordering comparison semantics for this value.
|
java.lang.String |
getStringValue()
Get a string representation of the sequence.
|
java.lang.CharSequence |
getStringValueCS()
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
|
effectiveBooleanValue, reduce, subsequenceAtomicValue 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 GroundedValuejava.lang.CharSequence getCanonicalLexicalRepresentation()
java.lang.Comparable getSchemaComparable()
In the case of data types that are partially ordered, the returned Comparable extends the standard
semantics of the compareTo() method by returning the value SequenceTool.INDETERMINATE_ORDERING when there
is no defined order relationship between two given values.
java.lang.CharSequence getStringValueCS()
getStringValueCS in interface GroundedValuejava.lang.String getStringValue()
getStringValue in interface GroundedValueCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.