public static class FixDataHook.FixDataTag extends Object implements FixDataHook.FixData
Modifier and Type | Field and Description |
---|---|
(package private) String |
newKey
key of correct data
|
(package private) String |
newValue
value of correct data
|
(package private) String |
oldKey
key of wrong data
|
(package private) String |
oldValue
value of wrong data
|
Constructor and Description |
---|
FixDataHook.FixDataTag(String oldKey,
String oldValue,
String newKey,
String newValue)
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.FixDataTag(String oldKey, String oldValue, String newKey, String newValue)
oldKey
- wrong or old keyoldValue
- wrong or old valuenewKey
- correct key replacementnewValue
- correct value 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