public abstract class AbstractNodeList extends Object implements NodeList
| Modifier and Type | Field and Description |
|---|---|
protected NodeList |
nodeList
The wrapped nodelist.
|
protected Element |
rootElement
The root (parent) element for all of the nodes in the list.
|
| Constructor and Description |
|---|
AbstractNodeList(Element rootElement,
NodeList nodeList)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Element item)
Add an item to the list.
|
AbstractElement |
getByElementId(String name)
Get an element by comparing the provided name to each element in turn.
|
int |
getLength() |
abstract Node |
item(int index) |
Iterator |
iterator()
Create an iterator over the list.
|
void |
remove(Element item)
Remove an item from the list.
|
protected NodeList nodeList
protected Element rootElement
public abstract Node item(int index)
item in interface NodeListNodeList.item(int)public int getLength()
getLength in interface NodeListNodeList.getLength()public Iterator iterator()
public AbstractElement getByElementId(String name)
name - in the name of the elementpublic void add(Element item)
item - in the item to addpublic void remove(Element item)
item - in the item to removeCopyright © 2004-2013 Codehaus. All Rights Reserved.