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, subsequence
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
java.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 GroundedValue
java.lang.String getStringValue()
getStringValue
in interface GroundedValue
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.