|
|||||||
| 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.EmptyNodeSet
public final class EmptyNodeSet
| Field Summary | |
|---|---|
static org.exist.dom.EmptyNodeSet.EmptyNodeSetIterator |
EMPTY_ITERATOR
|
| 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 | |
|---|---|
EmptyNodeSet()
|
|
| Method Summary | |
|---|---|
void |
add(DocumentImpl doc,
long nodeId)
|
void |
add(Node node)
|
void |
add(NodeProxy proxy)
Add a new proxy object to the node set. |
void |
addAll(NodeList other)
|
void |
addAll(NodeSet other)
Add all nodes from the given node set. |
boolean |
contains(DocumentImpl doc)
|
boolean |
contains(DocumentImpl doc,
long nodeId)
|
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 proxy)
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. |
boolean |
hasOne()
Returns whether the sequence has just one item or not. |
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. |
NodeProxy |
parentWithChild(DocumentImpl doc,
NodeId nodeId,
boolean directParent,
boolean includeSelf)
Check if the node identified by its node id has an ancestor contained in this node set and return the ancestor found. |
void |
remove(NodeProxy node)
|
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 |
| Field Detail |
|---|
public static final org.exist.dom.EmptyNodeSet.EmptyNodeSetIterator EMPTY_ITERATOR
| Constructor Detail |
|---|
public EmptyNodeSet()
| Method Detail |
|---|
public NodeSetIterator iterator()
AbstractNodeSet
iterator in interface NodeSetiterator in class AbstractNodeSet
public SequenceIterator iterate()
throws XPathException
Sequence
iterate in interface Sequenceiterate in class AbstractNodeSetXPathException - TODOpublic SequenceIterator unorderedIterator()
Sequence
unorderedIterator in interface SequenceunorderedIterator in class AbstractNodeSet
public boolean contains(DocumentImpl doc,
long nodeId)
public boolean contains(NodeProxy proxy)
AbstractNodeSet
contains in interface NodeSetcontains in class AbstractNodeSetpublic boolean contains(DocumentImpl doc)
public boolean isEmpty()
Sequence
isEmpty in interface SequenceisEmpty in class AbstractSequencetrue is the sequence is emptypublic boolean hasOne()
Sequence
hasOne in interface SequencehasOne in class AbstractSequencetrue is the sequence has just one item
public void add(DocumentImpl doc,
long nodeId)
public void add(Node node)
public void add(NodeProxy proxy)
AbstractNodeSet
add in interface NodeSetadd in class AbstractNodeSetpublic void addAll(NodeList other)
public void addAll(NodeSet other)
AbstractNodeSet
addAll in interface NodeSetaddAll in class AbstractNodeSetpublic void remove(NodeProxy node)
public int getLength()
AbstractNodeSet
getLength in interface NodeListgetLength in class AbstractNodeSetpublic int getItemCount()
Sequence
getItemCount in interface SequencegetItemCount in class AbstractSequencepublic Node item(int pos)
item in interface NodeListitem in class AbstractNodeSetpublic Item itemAt(int pos)
Sequence
itemAt in interface SequenceitemAt in class AbstractSequencepublic NodeProxy get(int pos)
AbstractNodeSet
get in interface NodeSetget in class AbstractNodeSet
public NodeProxy get(DocumentImpl doc,
NodeId nodeId)
public NodeProxy parentWithChild(DocumentImpl doc,
NodeId nodeId,
boolean directParent,
boolean includeSelf)
NodeSet
parentWithChild in interface NodeSetparentWithChild in class AbstractNodeSetpublic NodeProxy get(NodeProxy proxy)
AbstractNodeSet
get in interface NodeSetget in class AbstractNodeSet
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||