Class FixDataHook.FixDataKey

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String newKey
      key of correct data
      private java.lang.String oldKey
      key of wrong data
    • Constructor Summary

      Constructors 
      Constructor Description
      FixDataKey​(java.lang.String oldKey, java.lang.String newKey)
      Setup key check for wrong spelled keys
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • oldKey

        private final java.lang.String oldKey
        key of wrong data
      • newKey

        private final java.lang.String newKey
        key of correct data
    • Constructor Detail

      • FixDataKey

        public FixDataKey​(java.lang.String oldKey,
                          java.lang.String newKey)
        Setup key check for wrong spelled keys
        Parameters:
        oldKey - wrong spelled key
        newKey - correct replacement
    • Method Detail

      • fixKeys

        public boolean fixKeys​(java.util.Map<java.lang.String,​java.lang.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