|
||||||||||
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.validation.util.AggregatePrimitivesVisitor
public class AggregatePrimitivesVisitor
A visitor that aggregates all primitives it visits.
The primitives are sorted according to their type: first nodes, then ways.
Field Summary | |
---|---|
(package private) java.util.Collection<OsmPrimitive> |
aggregatedData
Aggregated data |
Constructor Summary | |
---|---|
AggregatePrimitivesVisitor()
|
Method Summary | |
---|---|
java.util.Collection<OsmPrimitive> |
visit(java.util.Collection<OsmPrimitive> data)
Visits a collection of primitives |
void |
visit(Node n)
Visiting call for points. |
void |
visit(Relation r)
Visiting call for relations. |
void |
visit(Way w)
Visiting call for lines. |
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 |
---|
final java.util.Collection<OsmPrimitive> aggregatedData
Constructor Detail |
---|
public AggregatePrimitivesVisitor()
Method Detail |
---|
public java.util.Collection<OsmPrimitive> visit(java.util.Collection<OsmPrimitive> data)
data
- The collection of primitives
public void visit(Node n)
Visitor
n
- The node to inspect.public void visit(Way w)
Visitor
w
- The way to inspect.public void visit(Relation r)
Visitor
r
- The relation to inspect.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |