|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xalan.xpath.xml.NodeVector | +--weblogic.apache.xalan.xpath.MutableNodeListImpl
Implementation of MutableNodeList.
This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.
Fields inherited from class weblogic.apache.xalan.xpath.xml.NodeVector |
m_map |
Constructor Summary | |
MutableNodeListImpl()
Create an empty nodelist. |
|
MutableNodeListImpl(int blocksize)
Create an empty nodelist. |
|
MutableNodeListImpl(org.w3c.dom.Node node)
Create a MutableNodeListImpl, and copy the members of the given nodelist into it. |
|
MutableNodeListImpl(org.w3c.dom.NodeList nodelist)
Create a MutableNodeListImpl, and copy the members of the given nodelist into it. |
Method Summary | |
void |
addNode(org.w3c.dom.Node n)
Add a node. |
int |
addNodeInDocOrder(org.w3c.dom.Node node,
boolean test,
XPathSupport support)
Add the node into a vector of nodes where it should occur in document order. |
int |
addNodeInDocOrder(org.w3c.dom.Node node,
XPathSupport support)
Add the node into a vector of nodes where it should occur in document order. |
void |
addNodes(org.w3c.dom.NodeList nodelist)
Copy NodeList members into this nodelist, adding in document order. |
void |
addNodesInDocOrder(org.w3c.dom.NodeList nodelist,
XPathSupport support)
Copy NodeList members into this nodelist, adding in document order. |
boolean |
checkDups()
|
boolean |
checkDups(org.w3c.dom.Node node)
Check for duplicates, for diagnostics. |
int |
getLength()
The number of nodes in the list. |
void |
insertNode(org.w3c.dom.Node n,
int pos)
Insert a node at a given position. |
static boolean |
isNodeAfter(org.w3c.dom.Node node1,
org.w3c.dom.Node node2,
XPathSupport support)
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)
Returns the index th item in the collection. |
void |
removeNode(org.w3c.dom.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 class weblogic.apache.xalan.xpath.xml.NodeVector |
addElement,
appendNodes,
contains,
elementAt,
indexOf,
indexOf,
insertElementAt,
removeAllElements,
removeElement,
removeElementAt,
setElementAt,
size |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
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)
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs60 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |