org.openstreetmap.josm.corrector
Class TagCorrector<P extends OsmPrimitive>

java.lang.Object
  extended by 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.


Field Summary
private  java.lang.String[] applicationOptions
           
 
Constructor Summary
TagCorrector()
           
 
Method Summary
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)
           
abstract  java.util.Collection<Command> execute(P primitive, P oldprimitive)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

applicationOptions

private java.lang.String[] applicationOptions
Constructor Detail

TagCorrector

public TagCorrector()
Method Detail

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