jd.xml.xpath.object
Class XMutableNodeSet

java.lang.Object
  extended byjd.xml.xpath.object.XObject
      extended byjd.xml.xpath.object.XNodeSet
          extended byjd.xml.xpath.object.XMutableNodeSet
Direct Known Subclasses:
XConvertibleNodeSet, XCountNodeSet, XListNodeSet, XSingleNodeSet, XSumNodeSet

public abstract class XMutableNodeSet
extends XNodeSet

A NodeSet to which nodes can be added.


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
XMutableNodeSet()
           
 
Method Summary
abstract  void addNode(XPathNode node)
          Add a node to the nodeset.
 void addNodes(XNodeSet nodeSet)
          Add another nodeset to this nodeset.
 void merge(XNodeSet set1, XNodeSet set2)
          Merge two nodesets, which are already ordered in document order.
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.
 void sort()
          Sort the nodeset.
 
Methods inherited from class jd.xml.xpath.object.XNodeSet
canConvertTo, compare, compare, compare, compare, compare, compare, compare, contains, contains, getDocId, getNode, getNodeSum, getOrdering, getType, indexOf, isEmpty, isOrdered, isOrdered, setDocId, setMultiDocId, size, 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

XMutableNodeSet

public XMutableNodeSet()
Method Detail

addNode

public abstract void addNode(XPathNode node)
Add a node to the nodeset.


addNodes

public void addNodes(XNodeSet nodeSet)
Add another nodeset to this nodeset.


sort

public void sort()
Sort the nodeset.


merge

public void merge(XNodeSet set1,
                  XNodeSet set2)
Merge two nodesets, which are already ordered in document order.


mergeSingleDoc

protected void mergeSingleDoc(XNodeSet set1,
                              XNodeSet set2)
Merge two node-sets whose nodes all belong to the same document.


mergeMultiDoc

protected void mergeMultiDoc(XNodeSet set1,
                             XNodeSet set2)
Merge two node-sets whose nodes belong to different documents.