|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjd.xml.xpath.object.XObject
jd.xml.xpath.object.XNodeSet
jd.xml.xpath.object.XMutableNodeSet
jd.xml.xpath.object.XCountNodeSet
A XMutableNodeSet that does not store the added nodes but only updates the size information.
| Field Summary |
| Fields inherited from class jd.xml.xpath.object.XNodeSet |
ORDER_CONVERTIBLE, ORDER_COUNTED, ORDER_ORDERED, ORDER_SUMMARIZED, ORDER_UNORDERED |
| Fields inherited from class jd.xml.xpath.object.XObject |
TYPE_BOOLEAN, TYPE_NODESET, TYPE_NUMBER, TYPE_STRING, TYPE_VARIABLE, TYPES |
| Constructor Summary | |
protected |
XCountNodeSet()
|
| Method Summary | |
void |
addNode(XPathNode node)
Add a node to the nodeset. |
void |
addNodes(XNodeSet nodeSet)
Add another nodeset to this nodeset. |
XPathNode |
getNode(int index)
Get the node for the given index. |
int |
getOrdering()
Return XNodeset.COUNTED. |
boolean |
isEmpty()
Return if the nodeset is empty. |
void |
setNode(XPathNode node,
int index)
|
int |
size()
Return the size of the NodeSet. |
String |
toString()
Return a debug string representation of this XObject. |
| Methods inherited from class jd.xml.xpath.object.XMutableNodeSet |
merge, mergeMultiDoc, mergeSingleDoc, sort |
| Methods inherited from class jd.xml.xpath.object.XNodeSet |
canConvertTo, compare, compare, compare, compare, compare, compare, compare, contains, contains, getDocId, getNodeSum, getType, indexOf, isOrdered, isOrdered, setDocId, setMultiDocId, toBooleanValue, toNodeSet, toNumberValue, toNumberValue, toStringValue, toStringValue, toValue, toValue |
| Methods inherited from class jd.xml.xpath.object.XObject |
compare, equals, getTypeName, getTypeName, hashCode, toXObject |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected XCountNodeSet()
| Method Detail |
public int getOrdering()
getOrdering in class XNodeSetpublic int size()
XNodeSet
size in class XNodeSetpublic boolean isEmpty()
XNodeSet
isEmpty in class XNodeSetpublic XPathNode getNode(int index)
XNodeSet
getNode in class XNodeSet
public void setNode(XPathNode node,
int index)
public void addNode(XPathNode node)
XMutableNodeSet
addNode in class XMutableNodeSetpublic void addNodes(XNodeSet nodeSet)
XMutableNodeSet
addNodes in class XMutableNodeSetpublic String toString()
toString in class XNodeSet
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||