|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.framework.xml.NodeListAdapter
public class NodeListAdapter
Handy implmenetation of Iterator
over a NodeList
.
Allows to create iteration mechanizm utilizing for( element : elements )
loop. Example:
NodeList ndList = ...; // obtain a list of nodes
for (Node nd : new NodeListAdapter(ndList)) {
// do something usefull with nd
}
Constructor Summary | |
---|---|
NodeListAdapter(NodeList nodes)
Creates instance of the adapter. |
Method Summary | |
---|---|
Iterator<Node> |
iterator()
Returns an iterator over a set of nodes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeListAdapter(NodeList nodes)
nodes
- nodes to iterate over (can be null
)Method Detail |
---|
public Iterator<Node> iterator()
ReadOnlyIterator
.
iterator
in interface Iterable<Node>
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |