Class FixDataHook.FixDataTag

    • Field Summary

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

      Constructors 
      Constructor Description
      FixDataTag​(java.lang.String oldKey, java.lang.String oldValue, java.lang.String newKey, java.lang.String newValue)
      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
      • oldValue

        private final java.lang.String oldValue
        value of wrong data
      • newKey

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

        private final java.lang.String newValue
        value of correct data
    • Constructor Detail

      • FixDataTag

        public FixDataTag​(java.lang.String oldKey,
                          java.lang.String oldValue,
                          java.lang.String newKey,
                          java.lang.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​(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