|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openstreetmap.josm.data.osm.visitor.AbstractVisitor
org.openstreetmap.josm.data.osm.visitor.AllNodesVisitor
public class AllNodesVisitor
Collect all nodes a specific osm primitive has.
| Field Summary | |
|---|---|
java.util.Collection<Node> |
nodes
The resulting nodes collected so far. |
| Constructor Summary | |
|---|---|
AllNodesVisitor()
|
|
| Method Summary | |
|---|---|
static java.util.Collection<Node> |
getAllNodes(java.util.Collection<? extends OsmPrimitive> osms)
|
void |
visit(Node n)
Nodes have only itself as nodes. |
void |
visit(Relation e)
Relations may have any number of nodes. |
void |
visit(Way w)
Ways have their way nodes. |
| Methods inherited from class org.openstreetmap.josm.data.osm.visitor.AbstractVisitor |
|---|
visit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.util.Collection<Node> nodes
| Constructor Detail |
|---|
public AllNodesVisitor()
| Method Detail |
|---|
public void visit(Node n)
n - The node to inspect.public void visit(Way w)
w - The way to inspect.public void visit(Relation e)
e - The relation to inspect.public static java.util.Collection<Node> getAllNodes(java.util.Collection<? extends OsmPrimitive> osms)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||