Class FixDataHook.FixDataKey

    • Constructor Detail

      • FixDataKey

        public FixDataKey​(String oldKey,
                          String newKey)
        Setup key check for wrong spelled keys
        Parameters:
        oldKey - wrong spelled key
        newKey - correct 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