Package org.openstreetmap.josm.command
Class Command.CloneVisitor
- java.lang.Object
-
- org.openstreetmap.josm.command.Command.CloneVisitor
-
- All Implemented Interfaces:
OsmPrimitiveVisitor
- Enclosing class:
- Command
private static final class Command.CloneVisitor extends java.lang.Object implements OsmPrimitiveVisitor
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.Map<OsmPrimitive,PrimitiveData>
orig
-
Constructor Summary
Constructors Modifier Constructor Description private
CloneVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visit(Node n)
Visiting call for points.void
visit(Relation e)
Visiting call for relations.void
visit(Way w)
Visiting call for lines.
-
-
-
Field Detail
-
orig
final java.util.Map<OsmPrimitive,PrimitiveData> orig
-
-
Constructor Detail
-
CloneVisitor
private CloneVisitor()
-
-
Method Detail
-
visit
public void visit(Node n)
Description copied from interface:OsmPrimitiveVisitor
Visiting call for points.- Specified by:
visit
in interfaceOsmPrimitiveVisitor
- Parameters:
n
- The node to inspect.
-
visit
public void visit(Way w)
Description copied from interface:OsmPrimitiveVisitor
Visiting call for lines.- Specified by:
visit
in interfaceOsmPrimitiveVisitor
- Parameters:
w
- The way to inspect.
-
visit
public void visit(Relation e)
Description copied from interface:OsmPrimitiveVisitor
Visiting call for relations.- Specified by:
visit
in interfaceOsmPrimitiveVisitor
- Parameters:
e
- The relation to inspect.
-
-