public static class FixDataHook.FixDataKey extends Object implements FixDataHook.FixData
Modifier and Type | Field and Description |
---|---|
(package private) String |
newKey
key of correct data
|
(package private) String |
oldKey
key of wrong data
|
Constructor and Description |
---|
FixDataHook.FixDataKey(String oldKey,
String newKey)
Setup key check for wrong spelled keys
|
Modifier and Type | Method and Description |
---|---|
boolean |
fixKeys(Map<String,String> keys,
OsmPrimitive osm)
Checks if data needs to be fixed and change keys
|
public FixDataHook.FixDataKey(String oldKey, String newKey)
oldKey
- wrong spelled keynewKey
- correct replacementpublic boolean fixKeys(Map<String,String> keys, OsmPrimitive osm)
FixDataHook.FixData
fixKeys
in interface FixDataHook.FixData
keys
- list of keys to be modifiedosm
- the object for type validation, don't use keys of it!true
if keys have been modified