public static class FixDataHook.FixDataKey extends java.lang.Object implements FixDataHook.FixData
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
newKey
key of correct data
|
private java.lang.String |
oldKey
key of wrong data
|
| Constructor and Description |
|---|
FixDataKey(java.lang.String oldKey,
java.lang.String newKey)
Setup key check for wrong spelled keys
|
| Modifier and Type | Method and 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
|
private final java.lang.String oldKey
private final java.lang.String newKey
public FixDataKey(java.lang.String oldKey, java.lang.String newKey)
oldKey - wrong spelled keynewKey - correct replacementpublic boolean fixKeys(java.util.Map<java.lang.String,java.lang.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