Class FixDataHook.FixDataKey
- java.lang.Object
-
- org.openstreetmap.josm.actions.upload.FixDataHook.FixDataKey
-
- All Implemented Interfaces:
FixDataHook.FixData
- Enclosing class:
- FixDataHook
public static class FixDataHook.FixDataKey extends java.lang.Object implements FixDataHook.FixData
Data fix to cleanup wrong spelled keys
-
-
Constructor Summary
Constructors Constructor Description FixDataKey(java.lang.String oldKey, java.lang.String newKey)
Setup key check for wrong spelled keys
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
fixKeys(java.util.Map<java.lang.String,java.lang.String> keys, OsmPrimitive osm)
Checks if data needs to be fixed and change keys
-
-
-
Constructor Detail
-
FixDataKey
public FixDataKey(java.lang.String oldKey, java.lang.String newKey)
Setup key check for wrong spelled keys- Parameters:
oldKey
- wrong spelled keynewKey
- correct replacement
-
-
Method Detail
-
fixKeys
public boolean fixKeys(java.util.Map<java.lang.String,java.lang.String> keys, OsmPrimitive osm)
Description copied from interface:FixDataHook.FixData
Checks if data needs to be fixed and change keys- Specified by:
fixKeys
in interfaceFixDataHook.FixData
- Parameters:
keys
- list of keys to be modifiedosm
- the object for type validation, don't use keys of it!- Returns:
true
if keys have been modified
-
-