P - The type of OSM primitive to correctpublic abstract class TagCorrector<P extends OsmPrimitive> extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String[] |
APPLICATION_OPTIONS |
| Constructor and Description |
|---|
TagCorrector() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Collection<Command> |
applyCorrections(DataSet dataSet,
java.util.Map<OsmPrimitive,java.util.List<TagCorrection>> tagCorrectionsMap,
java.util.Map<OsmPrimitive,java.util.List<RoleCorrection>> roleCorrectionMap,
java.lang.String description)
Creates the commands to correct the tags.
|
abstract java.util.Collection<Command> |
execute(P oldprimitive,
P primitive)
Executes the tag correction.
|
private static final java.lang.String[] APPLICATION_OPTIONS
public TagCorrector()
public abstract java.util.Collection<Command> execute(P oldprimitive, P primitive) throws UserCancelException
oldprimitive - old primitiveprimitive - new primitiveUserCancelException - If the user canceledapplyCorrections(DataSet, Map, Map, String)protected java.util.Collection<Command> applyCorrections(DataSet dataSet, java.util.Map<OsmPrimitive,java.util.List<TagCorrection>> tagCorrectionsMap, java.util.Map<OsmPrimitive,java.util.List<RoleCorrection>> roleCorrectionMap, java.lang.String description) throws UserCancelException
dataSet - The data set the primitives will be in once the commands are executedtagCorrectionsMap - The possible tag correctionsroleCorrectionMap - The possible role correctionsdescription - A description to add to the dialog.UserCancelException - If the user canceled