Class FixDataHook.FixDataTag
java.lang.Object
org.openstreetmap.josm.actions.upload.FixDataHook.FixDataTag
- All Implemented Interfaces:
FixDataHook.FixData
- Enclosing class:
- FixDataHook
Data fix to cleanup wrong spelled tags
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFixDataTag(String oldKey, String oldValue, String newKey, String newValue) Setup key check for wrong spelled keys -
Method Summary
Modifier and TypeMethodDescriptionbooleanfixKeys(Map<String, String> keys, OsmPrimitive osm) Checks if data needs to be fixed and change keys
-
Field Details
-
oldKey
key of wrong data -
oldValue
value of wrong data -
newKey
key of correct data -
newValue
value of correct data
-
-
Constructor Details
-
FixDataTag
Setup key check for wrong spelled keys- Parameters:
oldKey- wrong or old keyoldValue- wrong or old valuenewKey- correct key replacementnewValue- correct value replacement
-
-
Method Details
-
fixKeys
Description copied from interface:FixDataHook.FixDataChecks if data needs to be fixed and change keys- Specified by:
fixKeysin interfaceFixDataHook.FixData- Parameters:
keys- list of keys to be modifiedosm- the object for type validation, don't use keys of it!- Returns:
trueif keys have been modified
-