public 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 |
|---|
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 FixDataKey(String oldKey, String newKey)
oldKey - wrong spelled keynewKey - correct replacementpublic boolean fixKeys(Map<String,String> keys, OsmPrimitive osm)
FixDataHook.FixDatafixKeys in interface FixDataHook.FixDatakeys - list of keys to be modifiedosm - the object for type validation, don't use keys of it!true if keys have been modified