|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.exist.xquery.DeferredFunctionCall
public abstract class DeferredFunctionCall
| Field Summary |
|---|
| Fields inherited from interface org.exist.xquery.value.Sequence |
|---|
EMPTY_SEQUENCE |
| Method Summary | |
|---|---|
void |
add(Item item)
Add an item to the current sequence. |
void |
addAll(Sequence other)
Add all items of the other sequence to this item. |
void |
clearContext(int contextId)
For every item in the sequence, clear any context-dependant information that is stored during query processing. |
int |
conversionPreference(Class javaClass)
Returns a preference indicator, indicating the preference of a value to be converted into the given Java class. |
AtomicValue |
convertTo(int requiredType)
Try to convert the sequence into an atomic value. |
boolean |
effectiveBooleanValue()
Get the effective boolean value of this sequence. |
int |
getCardinality()
Returns the cardinality of this sequence. |
Iterator |
getCollectionIterator()
Return an iterator on all collections referenced by documents contained in this sequence.. |
DocumentSet |
getDocumentSet()
Returns the set of documents from which the node items in this sequence have been selected. |
int |
getItemCount()
Returns the number of items contained in the sequence. |
int |
getItemType()
Return the primary type to which all items in this sequence belong. |
String |
getStringValue()
Convert the sequence to a string. |
boolean |
hasMany()
Returns whether the sequence more than one item or not. |
boolean |
hasOne()
Returns whether the sequence has just one item or not. |
boolean |
isCached()
Returns true if the sequence is the result of a previous operation and has been cached. |
boolean |
isEmpty()
Returns whether the sequence is empty or not. |
boolean |
isPersistentSet()
|
Item |
itemAt(int pos)
Returns the item located at the specified position within this sequence. |
SequenceIterator |
iterate()
Returns an iterator over all items in the sequence. |
void |
nodeMoved(NodeId oldNodeId,
StoredNode newNode)
Node sets may implement this method to be informed of storage address and node id changes after updates. |
void |
removeDuplicates()
Explicitely remove all duplicate nodes from this sequence. |
void |
setIsCached(boolean cached)
Indicates that the sequence is the result of a previous operation and has not been recomputed. |
void |
setSelfAsContext(int contextId)
|
Object |
toJavaObject(Class target)
Convert the value into an instance of the specified Java class. |
NodeSet |
toNodeSet()
Convert the sequence into a NodeSet. |
SequenceIterator |
unorderedIterator()
Returns an iterator over all items in the sequence. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void add(Item item)
throws XPathException
SequenceXPathException may be thrown
if the item's type is incompatible with this type of sequence (e.g. if the sequence
is a node set).
The sequence may or may not allow duplicate values.
add in interface SequenceXPathException
public void addAll(Sequence other)
throws XPathException
SequenceXPathException may
be thrown if the type of the items in the other sequence is incompatible with
the primary type of this sequence.
addAll in interface SequenceXPathExceptionpublic void clearContext(int contextId)
Sequence
clearContext in interface Sequencepublic int conversionPreference(Class javaClass)
Sequence
conversionPreference in interface Sequence
public AtomicValue convertTo(int requiredType)
throws XPathException
SequenceType. An XPathException
is thrown if the conversion is impossible.
convertTo in interface SequencerequiredType - one of the type constants defined in class Type
XPathException
public boolean effectiveBooleanValue()
throws XPathException
Sequence
effectiveBooleanValue in interface SequenceXPathExceptionpublic int getCardinality()
SequenceCardinality.
getCardinality in interface SequenceCardinalitypublic DocumentSet getDocumentSet()
Sequence
getDocumentSet in interface Sequencepublic Iterator getCollectionIterator()
Sequence
getCollectionIterator in interface Sequencepublic int getItemType()
SequenceType.NODE for node sets, Type.ITEM
for other sequences with mixed items.
getItemType in interface Sequencepublic int getItemCount()
Sequence
getItemCount in interface Sequence
public String getStringValue()
throws XPathException
Sequence
getStringValue in interface SequenceXPathExceptionpublic boolean hasMany()
Sequence
hasMany in interface Sequencetrue is the sequence more than one itempublic boolean hasOne()
Sequence
hasOne in interface Sequencetrue is the sequence has just one itempublic boolean isCached()
Sequence
isCached in interface Sequencepublic boolean isEmpty()
Sequence
isEmpty in interface Sequencetrue is the sequence is emptypublic boolean isPersistentSet()
isPersistentSet in interface Sequencepublic Item itemAt(int pos)
Sequence
itemAt in interface Sequence
public SequenceIterator iterate()
throws XPathException
Sequence
iterate in interface SequenceXPathException - TODOpublic void removeDuplicates()
Sequence
removeDuplicates in interface Sequencepublic void setIsCached(boolean cached)
Sequence
setIsCached in interface Sequencepublic void setSelfAsContext(int contextId)
setSelfAsContext in interface Sequence
public Object toJavaObject(Class target)
throws XPathException
Sequence
toJavaObject in interface SequenceXPathException
public NodeSet toNodeSet()
throws XPathException
Sequence
toNodeSet in interface SequenceXPathException - if the sequence contains items which are not nodes.public SequenceIterator unorderedIterator()
Sequence
unorderedIterator in interface Sequence
public void nodeMoved(NodeId oldNodeId,
StoredNode newNode)
Sequence
nodeMoved in interface SequenceUpdateListener
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||