|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xml.utils.NodeVector
A very simple table that stores a list of Nodes.
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.
Field Summary | |
protected int |
m_firstFree
Number of nodes in this NodeVector. |
Constructor Summary | |
NodeVector()
Default constructor. |
|
NodeVector(int blocksize)
Construct a NodeVector, using the given block size. |
Method Summary | |
void |
addElement(org.w3c.dom.Node value)
Append a Node onto the vector. |
void |
appendNodes(NodeVector nodes)
Append the nodes to the list. |
java.lang.Object |
clone()
Get a cloned LocPathIterator. |
boolean |
contains(org.w3c.dom.Node s)
Tell if the table contains the given node. |
org.w3c.dom.Node |
elementAt(int i)
Get the nth element. |
int |
indexOf(org.w3c.dom.Node elem)
Searches for the first occurence of the given argument, beginning the search at index, and testing for equality using the equals method. |
int |
indexOf(org.w3c.dom.Node elem,
int index)
Searches for the first occurence of the given argument, beginning the search at index, and testing for equality using the equals method. |
void |
insertElementAt(org.w3c.dom.Node value,
int at)
Inserts the specified node in this vector at the specified index. |
org.w3c.dom.Node |
peepOrNull()
Return the node at the top of the stack without popping the stack. |
org.w3c.dom.Node |
peepTail()
Return the node at the tail of the vector without popping Special purpose method for TransformerImpl, pushElemTemplateElement. |
org.w3c.dom.Node |
peepTailSub1()
Return the node one position from the tail without popping. |
org.w3c.dom.Node |
pop()
Pop a node from the tail of the vector and return the result. |
org.w3c.dom.Node |
popAndTop()
Pop a node from the tail of the vector and return the top of the stack after the pop. |
void |
popPair()
Pop a pair of nodes from the tail of the stack. |
void |
popQuick()
Pop a node from the tail of the vector. |
void |
push(org.w3c.dom.Node value)
Append a Node onto the vector. |
void |
pushPair(org.w3c.dom.Node v1,
org.w3c.dom.Node v2)
Push a pair of nodes into the stack. |
void |
removeAllElements()
Inserts the specified node in this vector at the specified index. |
boolean |
removeElement(org.w3c.dom.Node s)
Removes the first occurrence of the argument from this vector. |
void |
removeElementAt(int i)
Deletes the component at the specified index. |
void |
setElementAt(org.w3c.dom.Node node,
int index)
Sets the component at the specified index of this vector to be the specified object. |
void |
setTail(org.w3c.dom.Node n)
Set the tail of the stack to the given node. |
void |
setTailSub1(org.w3c.dom.Node n)
Set the given node one position from the tail. |
int |
size()
Get the length of the list. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected int m_firstFree
Constructor Detail |
public NodeVector()
public NodeVector(int blocksize)
blocksize
- Size of blocks to allocateMethod Detail |
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
public int size()
public void addElement(org.w3c.dom.Node value)
value
- Node to add to the vectorpublic final void push(org.w3c.dom.Node value)
value
- Node to add to the vectorpublic final org.w3c.dom.Node pop()
public final org.w3c.dom.Node popAndTop()
public final void popQuick()
public final org.w3c.dom.Node peepOrNull()
public final void pushPair(org.w3c.dom.Node v1, org.w3c.dom.Node v2)
v1
- First node to add to vectorv2
- Second node to add to vectorpublic final void popPair()
public final void setTail(org.w3c.dom.Node n)
n
- Node to set at the tail of vectorpublic final void setTailSub1(org.w3c.dom.Node n)
n
- Node to setpublic final org.w3c.dom.Node peepTail()
public final org.w3c.dom.Node peepTailSub1()
public void insertElementAt(org.w3c.dom.Node value, int at)
value
- Node to insertat
- Position where to insertpublic void appendNodes(NodeVector nodes)
nodes
- NodeVector to append to this listpublic void removeAllElements()
public boolean removeElement(org.w3c.dom.Node s)
s
- Node to remove from the listpublic void removeElementAt(int i)
i
- Index of node to removepublic void setElementAt(org.w3c.dom.Node node, int index)
node
- Node to setindex
- Index of where to set the nodepublic org.w3c.dom.Node elementAt(int i)
i
- Index of node to getpublic boolean contains(org.w3c.dom.Node s)
s
- Node to look forpublic int indexOf(org.w3c.dom.Node elem, int index)
elem
- Node to look forindex
- Index of where to start the searchpublic int indexOf(org.w3c.dom.Node elem)
elem
- Node to look for
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |