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 Summary
Modifier and TypeMethodDescriptiondefault ILcdObjectTransformation
andThen
(ILcdObjectTransformation aAfter) Returns a transformation that executes the given transformations after the current one, passing the result of this transformation to the next.Returns the inverse transformation.Transforms the given value to another value.
-
Method Details
-
transform
Transforms the given value to another value. The givenaObject
should not be null. The context can be used to share information between transformations.- Parameters:
aObject
- the value to transformaContext
- the context- Returns:
- the transformed value
-
getInverse
ILcdObjectTransformation 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
-