Class ALcdObjectTransformation

java.lang.Object
com.luciad.datamodel.transformation.ALcdObjectTransformation
All Implemented Interfaces:
ILcdObjectTransformation

public abstract class ALcdObjectTransformation extends Object implements ILcdObjectTransformation
Simple implementation of ILcdObjectTransformation for invertible transformations that implements the inverse transformation by delegation to the invert(Object, Map) method.
Since:
11.0
  • Constructor Details

    • ALcdObjectTransformation

      public ALcdObjectTransformation()
  • Method Details

    • getInverse

      public ILcdObjectTransformation getInverse()
      Description copied from interface: ILcdObjectTransformation
      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.
      Specified by:
      getInverse in interface ILcdObjectTransformation
      Returns:
      the inverse transformation
    • transform

      public abstract Object transform(Object aObject, Map<Object,Object> aContext)
      Description copied from interface: ILcdObjectTransformation
      Transforms the given value to another value. The given aObject should not be null. The context can be used to share information between transformations.
      Specified by:
      transform in interface ILcdObjectTransformation
      Parameters:
      aObject - the value to transform
      aContext - the context
      Returns:
      the transformed value
    • invert

      protected abstract Object invert(Object aObject, Map<Object,Object> aContext)
      Returns the inverse of the given object.
      Parameters:
      aObject - the object on which the inverse transformation should be performed
      aContext - the transformation context
      Returns:
      the inverted object