|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectelectric.xml.Nodes
Nodes is an enumeration over a collection of nodes. To iterate through the collection in a typesafe way, use current(), first() and next().
Field Summary | |
protected Node |
current
|
protected NodeList |
list
|
Constructor Summary | |
Nodes()
|
|
Nodes(Node node)
|
|
Nodes(NodeList list)
|
Method Summary | |
Node |
currentNode()
Return the current Node, or null if there is none. |
Node |
firstNode()
Move to the first Node and return it, or null if there is none. |
NodeList |
getNodeList()
Return my underlying NodeList. |
boolean |
hasMoreElements()
Return true if there are more Nodes to read in the enumeration. |
java.lang.Object |
nextElement()
Return the current Node and then advance to the next one if present. |
Node |
nextNode()
Return the current Node and then advance to the next one if present. |
void |
remove()
Remove all the nodes from the current Node to the last Node. |
void |
reset()
Move to the first Node. |
int |
size()
Return the number of Nodes in the list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected NodeList list
protected Node current
Constructor Detail |
public Nodes()
public Nodes(NodeList list)
list
- public Nodes(Node node)
node
- Method Detail |
public boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration
public java.lang.Object nextElement()
nextElement
in interface java.util.Enumeration
public void reset()
public Node currentNode()
public Node firstNode()
public Node nextNode()
public int size()
public void remove()
public NodeList getNodeList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |