Class FixDataHook.FixDataTag

    • Constructor Detail

      • FixDataTag

        public FixDataTag​(String oldKey,
                          String oldValue,
                          String newKey,
                          String newValue)
        Setup key check for wrong spelled keys
        Parameters:
        oldKey - wrong or old key
        oldValue - wrong or old value
        newKey - correct key replacement
        newValue - correct value replacement
    • Method Detail

      • fixKeys

        public boolean fixKeys​(Map<String,​String> keys,
                               OsmPrimitive osm)
        Description copied from interface: FixDataHook.FixData
        Checks if data needs to be fixed and change keys
        Specified by:
        fixKeys in interface FixDataHook.FixData
        Parameters:
        keys - list of keys to be modified
        osm - the object for type validation, don't use keys of it!
        Returns:
        true if keys have been modified