Enhydra 3.1 API

org.apache.xalan.xpath
Interface MutableNodeList

All Known Implementing Classes:
MutableNodeListImpl

public interface MutableNodeList
extends NodeList

Interface for a modifiable NodeList.


Method Summary
 void addNode(Node n)
          Add a node.
 int addNodeInDocOrder(Node node, boolean test, XPathSupport support)
          Add the node into a vector of nodes where it should occur in document order.
 int addNodeInDocOrder(Node node, XPathSupport support)
          Add the node into a vector of nodes where it should occur in document order.
 void addNodes(NodeList nodelist)
          Copy NodeList members into this nodelist, adding in document order.
 void addNodesInDocOrder(NodeList nodelist, XPathSupport support)
          Copy NodeList members into this nodelist, adding in document order.
 void insertNode(Node n, int pos)
          Insert a node at a given position.
 void removeNode(Node n)
          Remove a node.
 void setItemNull(int pos)
          Set a item to null, so the list doesn't have to keep being compressed.
 
Methods inherited from interface org.w3c.dom.NodeList
getLength, item
 

Method Detail

addNode

public void addNode(Node n)
Add a node.

insertNode

public void insertNode(Node n,
                       int pos)
Insert a node at a given position.

removeNode

public void removeNode(Node n)
Remove a node.

setItemNull

public void setItemNull(int pos)
Set a item to null, so the list doesn't have to keep being compressed.

addNodes

public void addNodes(NodeList nodelist)
Copy NodeList members into this nodelist, adding in document order. If a node is null, don't add it.

addNodesInDocOrder

public void addNodesInDocOrder(NodeList nodelist,
                               XPathSupport support)
Copy NodeList members into this nodelist, adding in document order.

addNodeInDocOrder

public int addNodeInDocOrder(Node node,
                             boolean test,
                             XPathSupport support)
Add the node into a vector of nodes where it should occur in document order.
Parameters:
v - Vector of nodes, presumably containing Nodes
obj - Node object.
test - true if we should test for doc order

addNodeInDocOrder

public int addNodeInDocOrder(Node node,
                             XPathSupport support)
Add the node into a vector of nodes where it should occur in document order.
Parameters:
v - Vector of nodes, presumably containing Nodes
obj - Node object.

Enhydra 3.1 API