|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.xquery.value.AbstractSequence
org.exist.dom.AbstractNodeSet
org.exist.dom.AVLTreeNodeSet
public class AVLTreeNodeSet
Field Summary |
---|
Fields inherited from interface org.exist.dom.NodeSet |
---|
ANCESTOR, DESCENDANT, EMPTY_SET, FOLLOWING, PRECEDING |
Fields inherited from interface org.exist.xquery.value.Sequence |
---|
EMPTY_SEQUENCE |
Constructor Summary | |
---|---|
AVLTreeNodeSet()
|
Method Summary | |
---|---|
void |
add(NodeProxy proxy)
Add a new proxy object to the node set. |
void |
addAll(NodeSet other)
Add all nodes from the given node set. |
boolean |
contains(NodeProxy proxy)
Check if this node set contains a node matching the document and node-id of the given NodeProxy object. |
NodeProxy |
get(DocumentImpl doc,
NodeId nodeId)
|
NodeProxy |
get(int pos)
Get the node at position pos within this node set. |
NodeProxy |
get(NodeProxy p)
Get a node from this node set matching the document and node id of the given NodeProxy. |
int |
getItemCount()
Returns the number of items contained in the sequence. |
int |
getLength()
Return the number of nodes contained in this node set. |
org.exist.dom.AVLTreeNodeSet.Node |
getMaxNode()
|
org.exist.dom.AVLTreeNodeSet.Node |
getMinNode()
|
int |
getState()
|
boolean |
hasChanged(int previousState)
|
boolean |
hasOne()
Returns whether the sequence has just one item or not. |
boolean |
isCacheable()
|
boolean |
isEmpty()
Returns whether the sequence is empty or not. |
Node |
item(int pos)
|
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. |
NodeSetIterator |
iterator()
Return an iterator on the nodes in this list. |
void |
removeNode(org.exist.dom.AVLTreeNodeSet.Node node)
|
org.exist.dom.AVLTreeNodeSet.Node |
searchData(NodeProxy proxy)
|
String |
toString()
|
SequenceIterator |
unorderedIterator()
Returns an iterator over all items in the sequence. |
Methods inherited from class org.exist.xquery.value.AbstractSequence |
---|
conversionPreference, convertTo, effectiveBooleanValue, getCardinality, getStringValue, hasMany, setSelfAsContext, toJavaObject |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.exist.xquery.value.Sequence |
---|
conversionPreference, convertTo, effectiveBooleanValue, getCardinality, getStringValue, hasMany, setSelfAsContext, toJavaObject |
Constructor Detail |
---|
public AVLTreeNodeSet()
Method Detail |
---|
public SequenceIterator iterate() throws XPathException
Sequence
iterate
in interface Sequence
iterate
in class AbstractNodeSet
XPathException
- TODOpublic SequenceIterator unorderedIterator()
Sequence
unorderedIterator
in interface Sequence
unorderedIterator
in class AbstractNodeSet
public void addAll(NodeSet other)
AbstractNodeSet
addAll
in interface NodeSet
addAll
in class AbstractNodeSet
public int getLength()
AbstractNodeSet
getLength
in interface NodeList
getLength
in class AbstractNodeSet
public int getItemCount()
Sequence
getItemCount
in interface Sequence
getItemCount
in class AbstractSequence
public Node item(int pos)
item
in interface NodeList
item
in class AbstractNodeSet
public NodeProxy get(int pos)
AbstractNodeSet
get
in interface NodeSet
get
in class AbstractNodeSet
public final NodeProxy get(NodeProxy p)
AbstractNodeSet
get
in interface NodeSet
get
in class AbstractNodeSet
public boolean isEmpty()
Sequence
isEmpty
in interface Sequence
isEmpty
in class AbstractSequence
true
is the sequence is emptypublic boolean hasOne()
Sequence
hasOne
in interface Sequence
hasOne
in class AbstractSequence
true
is the sequence has just one itempublic Item itemAt(int pos)
Sequence
itemAt
in interface Sequence
itemAt
in class AbstractSequence
public final void add(NodeProxy proxy)
AbstractNodeSet
add
in interface NodeSet
add
in class AbstractNodeSet
public org.exist.dom.AVLTreeNodeSet.Node getMinNode()
public org.exist.dom.AVLTreeNodeSet.Node getMaxNode()
public final org.exist.dom.AVLTreeNodeSet.Node searchData(NodeProxy proxy)
public final NodeProxy get(DocumentImpl doc, NodeId nodeId)
public final boolean contains(NodeProxy proxy)
AbstractNodeSet
contains
in interface NodeSet
contains
in class AbstractNodeSet
public void removeNode(org.exist.dom.AVLTreeNodeSet.Node node)
public NodeSetIterator iterator()
AbstractNodeSet
iterator
in interface NodeSet
iterator
in class AbstractNodeSet
public boolean hasChanged(int previousState)
hasChanged
in interface NodeSet
hasChanged
in interface Sequence
hasChanged
in class AbstractNodeSet
public int getState()
getState
in interface NodeSet
getState
in interface Sequence
getState
in class AbstractNodeSet
public boolean isCacheable()
isCacheable
in interface Sequence
isCacheable
in class AbstractSequence
public String toString()
toString
in class AbstractNodeSet
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |