Interface LegacyMapping
public interface LegacyMapping
Encapsulation for changing a property value into different property or capability value
- Author:
- Karel Piwko
-
Method Summary
Modifier and TypeMethodDescriptionReturns a new value for a property key, e.g.booleanReturnstrueif remapped property will be backed by capability mapbooleanReturnstrueif remapped property will be backed by another property fieldremapValue(String value) Returns a new value for a property value, e.g.
-
Method Details
-
remapsToCapability
boolean remapsToCapability()Returnstrueif remapped property will be backed by capability map -
remapsToProperty
boolean remapsToProperty()Returnstrueif remapped property will be backed by another property field -
remapKey
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
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
-