public abstract class ALcdObjectTransformation extends Object implements ILcdObjectTransformation
ILcdObjectTransformation
for invertible transformations
that implements the inverse transformation by delegation to the invert(Object, Map)
method.Constructor and Description |
---|
ALcdObjectTransformation() |
Modifier and Type | Method and Description |
---|---|
ILcdObjectTransformation |
getInverse()
Returns the inverse transformation.
|
protected abstract Object |
invert(Object aObject,
Map<Object,Object> aContext)
Returns the inverse of the given object.
|
abstract Object |
transform(Object aObject,
Map<Object,Object> aContext)
Transforms the given value to another value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen
public ILcdObjectTransformation getInverse()
ILcdObjectTransformation
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.getInverse
in interface ILcdObjectTransformation
public abstract Object transform(Object aObject, Map<Object,Object> aContext)
ILcdObjectTransformation
aObject
should not be null. The context can be
used to share information between transformations.transform
in interface ILcdObjectTransformation
aObject
- the value to transformaContext
- the context