Interface GeometryOperation

All Known Implementing Classes:
BufferValidatedGeometryOperation, GeometryFunctionOperation, GeometryMethodOperation, LoggingGeometryOperation, OverlayValidatedGeometryOperation, PreparedGeometryOperation, PreparedGeometryTeeOperation, TeeGeometryOperation

public interface GeometryOperation
Interface for classes which execute operations on Geometrys. The arguments may be presented as Strings, even if they should be calling a method with non-String arguments. Geometry will always be supplied as Geometry objects, however. This interface abstracts out the invocation of a method on a Geometry during a Test. Subclasses can provide substitute or additional methods during runs of the same test file.
Version:
1.7
  • Method Details

    • getReturnType

      Class getReturnType(String opName)
      Gets the class of the return type of the given operation.
      Parameters:
      opName - the name of the operation
      Returns:
      the class of the return type of the specified operation
    • invoke

      Result invoke(String opName, Geometry geometry, Object[] args) throws Exception
      Invokes an operation on a Geometry.
      Parameters:
      opName - name of the operation
      geometry - the geometry to process
      args - the arguments to the operation (which may be typed as Strings)
      Returns:
      the result of the operation
      Throws:
      Exception - if some error was encountered trying to find or process the operation