Interface LegacyMapping


public interface LegacyMapping
Encapsulation for changing a property value into different property or capability value
Author:
Karel Piwko
  • Method Summary

    Modifier and Type
    Method
    Description
    remapKey(String fieldName)
    Returns a new value for a property key, e.g.
    boolean
    Returns true if remapped property will be backed by capability map
    boolean
    Returns true if remapped property will be backed by another property field
    Returns a new value for a property value, e.g.
  • Method Details

    • remapsToCapability

      boolean remapsToCapability()
      Returns true if remapped property will be backed by capability map
    • remapsToProperty

      boolean remapsToProperty()
      Returns true if remapped property will be backed by another property field
    • remapKey

      String remapKey(String fieldName)
      Returns a new value for a property key, e.g. the key where the value will be stored as a capability in the map or a field name
      Parameters:
      fieldName - Original field name from legacy Drone configuration
      Returns:
      New name to be used
    • remapValue

      String remapValue(String value)
      Returns a new value for a property value, e.g. the value which will be stored a the capability in the map or a field value
      Returns:
      New value to be used