|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.value.Value com.saxonica.deploy.Tail
public final class Tail
A sequence value implemented as the trailing part of an underlying value
This class is currently used only in compiled queries
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 |
Method Summary | |
---|---|
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 |
Comparable |
getSchemaComparable()
Get a Comparable value that implements the XML Schema ordering comparison semantics for this value. |
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. |
static Value |
make(Value value,
int start)
Static factory method |
Value |
reduce()
Reduce a value to its simplest form. |
Methods inherited from class net.sf.saxon.value.Value |
---|
asItem, asItem, asIterator, asValue, checkPermittedContents, convertToJava, effectiveBooleanValue, equals, fromItem, getCanonicalLexicalRepresentation, getIterator, getStringValue, getStringValueCS, hashCode, isIdentical, iterate, process |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Value make(Value value, int start)
value
- The underlying valuestart
- zero-based offset of the first item to be included
public Value reduce() throws XPathException
reduce
in class Value
XPathException
public int getLength() throws XPathException
getLength
in class Value
XPathException
public int getCardinality()
getCardinality
in class Value
Cardinality
public ItemType getItemType(TypeHierarchy th)
getItemType
in class Value
th
- the type hierarchy cache
public Item itemAt(int n) throws XPathException
itemAt
in class Value
n
- the position of the required item
XPathException
public SequenceIterator iterate() throws XPathException
iterate
in class Value
XPathException
- if a dynamic error occurs. This is possible only in the case of values
that are materialized lazily, that is, where the iterate() method leads to computation of an
expression that delivers the values.public 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 Value.INDETERMINATE_ORDERING
when there
is no defined order relationship between two given values.
getSchemaComparable
in class Value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |