Class FixDataHook.FixDataTag
- java.lang.Object
-
- org.openstreetmap.josm.actions.upload.FixDataHook.FixDataTag
-
- All Implemented Interfaces:
FixDataHook.FixData
- Enclosing class:
- FixDataHook
public static class FixDataHook.FixDataTag extends java.lang.Object implements FixDataHook.FixData
Data fix to cleanup wrong spelled tags
-
-
Constructor Summary
Constructors Constructor Description FixDataTag(java.lang.String oldKey, java.lang.String oldValue, java.lang.String newKey, java.lang.String newValue)
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
-
FixDataTag
public FixDataTag(java.lang.String oldKey, java.lang.String oldValue, java.lang.String newKey, java.lang.String newValue)
Setup key check for wrong spelled keys- Parameters:
oldKey
- wrong or old keyoldValue
- wrong or old valuenewKey
- correct key replacementnewValue
- correct value 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
-
-