jd.xml.xpath.object
Class XListNodeSet

java.lang.Object
  extended byjd.xml.xpath.object.XObject
      extended byjd.xml.xpath.object.XNodeSet
          extended byjd.xml.xpath.object.XMutableNodeSet
              extended byjd.xml.xpath.object.XListNodeSet

public final class XListNodeSet
extends XMutableNodeSet

A MutableNodeSet that stores the added nodes in an array.


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
XListNodeSet(int ordering, int capacity)
           
 
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 the ordering.
 boolean isEmpty()
          Return if the nodeset is empty.
 int size()
          Return the NodeSet size.
 void sort()
          Sort the nodeset.
 
Methods inherited from class jd.xml.xpath.object.XMutableNodeSet
merge, mergeMultiDoc, mergeSingleDoc
 
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

XListNodeSet

public XListNodeSet(int ordering,
                    int capacity)
Method Detail

getOrdering

public int getOrdering()
Return the ordering.

Overrides:
getOrdering in class XNodeSet

size

public int size()
Return the NodeSet size.

Specified by:
size in class XNodeSet

isEmpty

public boolean isEmpty()
Description copied from class: XNodeSet
Return if the nodeset is empty.

Overrides:
isEmpty in class XNodeSet

getNode

public XPathNode getNode(int index)
Description copied from class: XNodeSet
Get the node for the given index.

Specified by:
getNode in class XNodeSet

addNode

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

Specified by:
addNode in class XMutableNodeSet

addNodes

public void addNodes(XNodeSet nodeSet)
Description copied from class: XMutableNodeSet
Add another nodeset to this nodeset.

Overrides:
addNodes in class XMutableNodeSet

sort

public void sort()
Sort the nodeset.

Overrides:
sort in class XMutableNodeSet