java.io.Serializable, SequenceIterable, ValueRepresentationpublic final class ShareableSequence extends Value
EMPTY_CLASS_ARRAY, INDETERMINATE_ORDERINGEMPTY_VALUE_ARRAY| Constructor | Description |
|---|---|
ShareableSequence(java.util.List list) |
Construct an sequence from an array of items.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
effectiveBooleanValue() |
Get the effective boolean value
|
int |
getCardinality() |
Determine the cardinality
|
ItemType |
getItemType(TypeHierarchy th) |
Get the (lowest common) item type
|
int |
getLength() |
Get the number of items in the sequence
|
java.util.List |
getList() |
Get the underlying list
|
boolean |
isShareable() |
Determine whether another value can share this list.
|
Item |
itemAt(int n) |
Get the n'th item in the sequence (starting with 0 as the first item)
|
SequenceIterator |
iterate() |
Return an iterator over this sequence.
|
Value |
reduce() |
Reduce a value to its simplest form.
|
Value |
simplify() |
Simplify this value
|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasItem, asItem, asIterator, asValue, checkPermittedContents, convertToJava, equals, fromItem, getCanonicalLexicalRepresentation, getIterator, getSchemaComparable, getStringValue, getStringValueCS, iterate, makeQNameValue, process, stringToNumber, toStringpublic ShareableSequence(java.util.List list)
list - the list of items to be included in the sequencepublic boolean isShareable()
public java.util.List getList()
public Value simplify()
public Value reduce()
public int getLength()
public int getCardinality()
getCardinality in class ValueCardinalitypublic ItemType getItemType(TypeHierarchy th)
getItemType in class Valueth - the type hierarchy cachepublic Item itemAt(int n)
public SequenceIterator iterate()
public boolean effectiveBooleanValue()
throws XPathException
effectiveBooleanValue in class ValueXPathException - if any dynamic error occurs evaluating the
expression