|
|||||||||||
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.XSingleNodeSet
A XNodeSet which contains one or zero nodes.
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 | |
XSingleNodeSet()
Create an empty XSingleNodeSet. |
|
XSingleNodeSet(XPathNode node)
Create a XSingleNodeSet with one node. |
Method Summary | |
void |
addNode(XPathNode node)
Add a node to the nodeset. |
XPathNode |
getNode(int index)
Return the node for the given index (which should be 0). |
boolean |
isEmpty()
Return if the node-set contains one node. |
int |
size()
Return 0 or 1. |
Methods inherited from class jd.xml.xpath.object.XMutableNodeSet |
addNodes, 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, getOrdering, 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 |
public XSingleNodeSet()
public XSingleNodeSet(XPathNode node)
Method Detail |
public int size()
size
in class XNodeSet
public boolean isEmpty()
isEmpty
in class XNodeSet
public void addNode(XPathNode node)
addNode
in class XMutableNodeSet
public XPathNode getNode(int index)
getNode
in class XNodeSet
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |