public interface AtomicSequence extends Sequence, GroundedValue
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 |
---|---|
CharSequence |
getCanonicalLexicalRepresentation()
Get the canonical lexical representation as defined in XML Schema.
|
int |
getLength()
Get the size of the value (the number of items)
|
Comparable |
getSchemaComparable()
Get a Comparable value that implements the XML Schema ordering comparison semantics for this value.
|
String |
getStringValue()
Get the string value of this sequence.
|
CharSequence |
getStringValueCS()
Get the string value of this sequence.
|
AtomicValue |
head()
Get the first item in the sequence.
|
AtomicValue |
itemAt(int n)
Get the n'th item in the value, counting from 0
|
SequenceIterator<? extends AtomicValue> |
iterate()
Get an iterator
performance characteristics, though all should exhibit the same behaviour.over all the items in the sequence
|
effectiveBooleanValue, reduce, subsequence
AtomicValue head()
Sequence
SequenceIterator<? extends AtomicValue> iterate()
Sequence
AtomicValue itemAt(int n)
GroundedValue
itemAt
in interface GroundedValue
n
- the index of the required item, with 0 representing the first item in the sequenceint getLength()
GroundedValue
getLength
in interface GroundedValue
CharSequence getCanonicalLexicalRepresentation()
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.
CharSequence getStringValueCS()
GroundedValue
getStringValueCS
in interface GroundedValue
String getStringValue()
GroundedValue
getStringValue
in interface GroundedValue
Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.