|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xalan.xpath.xml.NodeVector | +--org.apache.xalan.xpath.MutableNodeListImpl
**For advanced use only** Implementation of MutableNodeList.
Constructor Summary | |
MutableNodeListImpl()
**For advanced use only** Create an empty nodelist. |
|
MutableNodeListImpl(int blocksize)
**For advanced use only** Create an empty nodelist. |
|
MutableNodeListImpl(org.w3c.dom.Node node)
**For advanced use only** Create a MutableNodeListImpl, and copy the members of the given nodelist into it. |
|
MutableNodeListImpl(org.w3c.dom.NodeList nodelist)
**For advanced use only** Create a MutableNodeListImpl, and copy the members of the given nodelist into it. |
Method Summary | |
void |
addNode(org.w3c.dom.Node n)
**For advanced use only** Add a node. |
int |
addNodeInDocOrder(org.w3c.dom.Node node,
boolean test,
XPathSupport support)
**For advanced use only** Add the node into a vector of nodes where it should occur in document order. |
int |
addNodeInDocOrder(org.w3c.dom.Node node,
XPathSupport support)
**For advanced use only** Add the node into a vector of nodes where it should occur in document order. |
void |
addNodes(org.w3c.dom.NodeList nodelist)
**For advanced use only** Copy NodeList members into this nodelist, adding in document order. |
void |
addNodesInDocOrder(org.w3c.dom.NodeList nodelist,
XPathSupport support)
**For advanced use only** Copy NodeList members into this nodelist, adding in document order. |
boolean |
checkDups()
**For advanced use only** |
boolean |
checkDups(org.w3c.dom.Node node)
**For advanced use only** Check for duplicates, for diagnostics. |
int |
getLength()
**For advanced use only** The number of nodes in the list. |
void |
insertNode(org.w3c.dom.Node n,
int pos)
**For advanced use only** Insert a node at a given position. |
static boolean |
isNodeAfter(org.w3c.dom.Node node1,
org.w3c.dom.Node node2,
XPathSupport support)
**For advanced use only** Figure out if node2 should be placed after node1 when placing nodes in a list that is to be sorted in document order. |
org.w3c.dom.Node |
item(int index)
**For advanced use only** Returns the index th item in the collection. |
void |
removeNode(org.w3c.dom.Node n)
**For advanced use only** Remove a node. |
void |
setItemNull(int pos)
**For advanced use only** Set a item to null, so the list doesn't have to keep being compressed. |
Methods inherited from class org.apache.xalan.xpath.xml.NodeVector |
addElement,
appendNodes,
contains,
elementAt,
indexOf,
indexOf,
insertElementAt,
removeAllElements,
removeElement,
removeElementAt,
setElementAt,
size |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public MutableNodeListImpl()
public MutableNodeListImpl(int blocksize)
public MutableNodeListImpl(org.w3c.dom.NodeList nodelist)
public MutableNodeListImpl(org.w3c.dom.Node node)
Method Detail |
public org.w3c.dom.Node item(int index)
index
th item in the collection. If
index
is greater than or equal to the number of nodes in
the list, this returns null
.index
- Index into the collection.index
th position in the
NodeList
, or null
if that is not a valid
index.public int getLength()
length-1
inclusive.public boolean checkDups(org.w3c.dom.Node node)
public boolean checkDups()
public void addNode(org.w3c.dom.Node n)
public void insertNode(org.w3c.dom.Node n, int pos)
public void removeNode(org.w3c.dom.Node n)
public void setItemNull(int pos)
public void addNodes(org.w3c.dom.NodeList nodelist)
public void addNodesInDocOrder(org.w3c.dom.NodeList nodelist, XPathSupport support)
public int addNodeInDocOrder(org.w3c.dom.Node node, boolean test, XPathSupport support)
v
- Vector of nodes, presumably containing Nodesobj
- Node object.test
- true if we should test for doc orderpublic int addNodeInDocOrder(org.w3c.dom.Node node, XPathSupport support)
v
- Vector of nodes, presumably containing Nodesobj
- Node object.public static boolean isNodeAfter(org.w3c.dom.Node node1, org.w3c.dom.Node node2, XPathSupport support)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |