public interface AtomicSequence extends GroundedValue<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
|
asIterable, effectiveBooleanValue, iterator, materialize, reduce, subsequence, toShortString
makeRepeatable
AtomicValue head()
head
in interface GroundedValue<AtomicValue>
head
in interface Sequence<AtomicValue>
AtomicIterator iterate()
iterate
in interface GroundedValue<AtomicValue>
iterate
in interface Sequence<AtomicValue>
AtomicValue itemAt(int n)
itemAt
in interface GroundedValue<AtomicValue>
n
- the index of the required item, with 0 representing the first item in the sequenceint getLength()
getLength
in interface GroundedValue<AtomicValue>
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<AtomicValue>
java.lang.String getStringValue()
getStringValue
in interface GroundedValue<AtomicValue>
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.