|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectnet.sf.saxon.value.Value
net.sf.saxon.value.ShareableSequence
public final class ShareableSequence
A sequence value implemented extensionally using an extensible List whose leading part can be shared with other sequence values. The list can be appended to by other users (at most one other user!), but the items within the range used by this sequence value cannot be modified.
| Field Summary |
|---|
| Fields inherited from class net.sf.saxon.value.Value |
|---|
INDETERMINATE_ORDERING |
| Fields inherited from interface net.sf.saxon.om.ValueRepresentation |
|---|
EMPTY_VALUE_ARRAY |
| Constructor Summary | |
|---|---|
ShareableSequence(List list)
Construct an sequence from an array of items. |
|
| Method Summary | |
|---|---|
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 |
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 |
| Methods inherited from class net.sf.saxon.value.Value |
|---|
asItem, asItem, asIterator, asValue, checkPermittedContents, convertToJava, equals, fromItem, getCanonicalLexicalRepresentation, getIterator, getSchemaComparable, getStringValue, getStringValueCS, isIdentical, iterate, process, stringToNumber |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShareableSequence(List list)
list - the list of items to be included in the sequence| Method Detail |
|---|
public boolean isShareable()
public List getList()
public Value simplify()
public Value reduce()
reduce in class Valuepublic int getLength()
getLength in class Valuepublic int getCardinality()
getCardinality in class ValueCardinalitypublic ItemType getItemType(TypeHierarchy th)
getItemType in class Valueth - the type hierarchy cache
public Item itemAt(int n)
itemAt in class Valuen - the position of the required item
public SequenceIterator iterate()
iterate in class Value
public boolean effectiveBooleanValue()
throws XPathException
effectiveBooleanValue in class ValueXPathException - if any dynamic error occurs evaluating the
expression
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||