|
|||||||||||
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.XConvertibleNodeSet
A XMutableNodeSet that can be converted to another XPath type and therefore stores only the first added node
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 | |
(package private) |
XConvertibleNodeSet()
|
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.ORDER_CONVERTIBLE. |
boolean |
isEmpty()
Return if the nodeset is empty. |
protected void |
mergeMultiDoc(XNodeSet set1,
XNodeSet set2)
Merge two node-sets whose nodes belong to different documents. |
protected void |
mergeSingleDoc(XNodeSet set1,
XNodeSet set2)
Merge two node-sets whose nodes all belong to the same document. |
int |
size()
Return the size of the NodeSet. |
Methods inherited from class jd.xml.xpath.object.XMutableNodeSet |
merge, 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, toString, 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 |
XConvertibleNodeSet()
Method Detail |
public int getOrdering()
getOrdering
in class XNodeSet
public int size()
size
in class XNodeSet
public boolean isEmpty()
isEmpty
in class XNodeSet
public XPathNode getNode(int index)
getNode
in class XNodeSet
public void addNode(XPathNode node)
addNode
in class XMutableNodeSet
public void addNodes(XNodeSet nodeSet)
addNodes
in class XMutableNodeSet
protected void mergeSingleDoc(XNodeSet set1, XNodeSet set2)
mergeSingleDoc
in class XMutableNodeSet
protected void mergeMultiDoc(XNodeSet set1, XNodeSet set2)
mergeMultiDoc
in class XMutableNodeSet
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |