Interface ILcdObjectTransformation

All Known Implementing Classes:
ALcdObjectTransformation

public interface ILcdObjectTransformation
Transformation that is responsible for transforming a given object into another object. The object can be a data object (in case of conversion of a data object type) or a scalar value (in case of primitive types).
Since:
11.0
  • Method Details

    • transform

      Object transform(Object aObject, Map<Object,Object> aContext)
      Transforms the given value to another value. The given aObject should not be null. The context can be used to share information between transformations.
      Parameters:
      aObject - the value to transform
      aContext - the context
      Returns:
      the transformed value
    • getInverse

      Returns the inverse transformation. getInverse().transform( transform( object ) ) should always return an object that can be considered equal to the given object. When the transformation has no inverse, null should be returned.
      Returns:
      the inverse transformation
    • andThen

      Returns a transformation that executes the given transformations after the current one, passing the result of this transformation to the next.
      Parameters:
      aAfter - the transformation to chain
      Returns:
      a transformation that first applies this transformation and then applies the aAfter transformation
      Since:
      2017.0