|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.cargo.module.internal.util.xml.AbstractNodeList
public abstract class AbstractNodeList
Wrapped NodeList that provides accessors and iterators.
Field Summary | |
---|---|
protected org.w3c.dom.NodeList |
nodeList
The wrapped nodelist. |
protected org.w3c.dom.Element |
rootElement
The root (parent) element for all of the nodes in the list. |
Constructor Summary | |
---|---|
AbstractNodeList(org.w3c.dom.Element rootElement,
org.w3c.dom.NodeList nodeList)
Constructor. |
Method Summary | |
---|---|
void |
add(org.w3c.dom.Element item)
Add an item to the list. |
AbstractElement |
getByElementId(java.lang.String name)
Get an element by comparing the provided name to each element in turn. |
int |
getLength()
|
abstract org.w3c.dom.Node |
item(int index)
|
java.util.Iterator |
iterator()
Create an iterator over the list. |
void |
remove(org.w3c.dom.Element item)
Remove an item from the list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.w3c.dom.NodeList nodeList
protected org.w3c.dom.Element rootElement
Constructor Detail |
---|
public AbstractNodeList(org.w3c.dom.Element rootElement, org.w3c.dom.NodeList nodeList)
rootElement
- the root element of all the nodelist itemsnodeList
- the nodelist to wrapMethod Detail |
---|
public abstract org.w3c.dom.Node item(int index)
item
in interface org.w3c.dom.NodeList
NodeList.item(int)
public int getLength()
getLength
in interface org.w3c.dom.NodeList
NodeList.getLength()
public java.util.Iterator iterator()
public AbstractElement getByElementId(java.lang.String name)
name
- in the name of the element
public void add(org.w3c.dom.Element item)
item
- in the item to addpublic void remove(org.w3c.dom.Element item)
item
- in the item to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |