|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.teamkonzept.dom4jb.dom.FilteredNodeList
| Field Summary | |
protected int |
initialCapacity
|
| Constructor Summary | |
FilteredNodeList(NodeList baseList,
Filter filter)
|
|
| Method Summary | |
void |
clear()
Removes all of the elements from this list. |
void |
ensureCapacity(int minCapacity)
Increases the capacity of this NodeList instance, if necessary, to ensure that it can hold at least the number of elements specified by the minimum capacity argument. |
Node |
get(int index)
Returns the indexth item in the collection. |
int |
getLength()
The number of nodes in the list. |
boolean |
isEmpty()
Tests if this list has no elements. |
Node |
item(int index)
Returns the indexth item in the collection. |
int |
size()
Returns the number of elements in this list. |
void |
trimToSize()
Trims the capacity of this NodeList instance to be the list's current size. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final int initialCapacity
| Constructor Detail |
public FilteredNodeList(NodeList baseList,
Filter filter)
| Method Detail |
public void trimToSize()
public void ensureCapacity(int minCapacity)
minCapacity - the desired minimum capacity.public int size()
public int getLength()
length-1 inclusive.
getLength in interface NodeListpublic boolean isEmpty()
public Node get(int index)
indexth 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.
indexth position in the
NodeList, or null if that is not a valid
index.public Node item(int index)
indexth item in the collection. If
index is greater than or equal to the number of nodes in
the list, this returns null.
item in interface NodeListindex - Index into the collection.
indexth position in the
NodeList, or null if that is not a valid
index.public void clear()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||