public class AllNodesVisitor extends java.lang.Object implements OsmPrimitiveVisitor
| Modifier and Type | Field and Description |
|---|---|
java.util.Collection<Node> |
nodes
The resulting nodes collected so far.
|
| Constructor and Description |
|---|
AllNodesVisitor() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Collection<Node> |
getAllNodes(java.util.Collection<? extends OsmPrimitive> osms)
Replies all nodes contained by the given primitives
|
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.
|
public AllNodesVisitor()
public void visit(Node n)
visit in interface OsmPrimitiveVisitorn - The node to inspect.public void visit(Way w)
visit in interface OsmPrimitiveVisitorw - The way to inspect.public void visit(Relation e)
visit in interface OsmPrimitiveVisitore - The relation to inspect.public static java.util.Collection<Node> getAllNodes(java.util.Collection<? extends OsmPrimitive> osms)
osms - The OSM primitives to inspect