|
|||||||||||
| 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.XSumNodeSet
A NodeSet which collects only the sum of the number values of the added nodes but does not provide access to the nodes. Used to optimize the sum function.
| 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) |
XSumNodeSet()
|
| Method Summary | |
void |
addNode(XPathNode node)
Add a node to the nodeset. |
void |
addNodes(XNodeSet nodeSet)
Add another nodeset to this nodeset. |
boolean |
contains(String value)
Test if the nodeset contains a node whose stringvalue equals the given value. |
boolean |
contains(XPathNode node)
Test if the nodeset contains a node who equals the given node. |
XPathNode |
getNode(int index)
Get the node for the given index. |
double |
getNodeSum()
Get the sum of the number value of all nodes in this nodeset. |
int |
getOrdering()
Return the ordering of this NodeSet. |
boolean |
isEmpty()
Return if the nodeset is empty. |
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, getDocId, 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 |
XSumNodeSet()
| Method Detail |
public int getOrdering()
XNodeSet
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 XNodeSetpublic double getNodeSum()
XNodeSet
getNodeSum in class XNodeSetpublic void addNode(XPathNode node)
XMutableNodeSet
addNode in class XMutableNodeSetpublic void addNodes(XNodeSet nodeSet)
XMutableNodeSet
addNodes in class XMutableNodeSetpublic boolean contains(XPathNode node)
XNodeSet
contains in class XNodeSetpublic boolean contains(String value)
XNodeSet
contains in class XNodeSetpublic String toString()
toString in class XNodeSet
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||