org.openstreetmap.josm.corrector
Class TagCorrector<P extends OsmPrimitive>
java.lang.Object
org.openstreetmap.josm.corrector.TagCorrector<P>
- Direct Known Subclasses:
- ReverseWayTagCorrector
public abstract class TagCorrector<P extends OsmPrimitive>
- extends java.lang.Object
Abstract base class for automatic tag corrections.
Subclasses call applyCorrections() with maps of the requested
corrections and a dialog is pesented to the user to
confirm these changes.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
applicationOptions
private java.lang.String[] applicationOptions
TagCorrector
public TagCorrector()
execute
public abstract java.util.Collection<Command> execute(P primitive,
P oldprimitive)
throws UserCancelException
- Throws:
UserCancelException
applyCorrections
protected java.util.Collection<Command> applyCorrections(java.util.Map<OsmPrimitive,java.util.List<TagCorrection>> tagCorrectionsMap,
java.util.Map<OsmPrimitive,java.util.List<RoleCorrection>> roleCorrectionMap,
java.lang.String description)
throws UserCancelException
- Throws:
UserCancelException
JOSM