Package org.locationtech.jtstest.geomop
Interface GeometryOperation
-
- All Known Implementing Classes:
BufferValidatedGeometryOperation,GeometryFunctionOperation,GeometryMethodOperation,LoggingGeometryOperation,OverlayValidatedGeometryOperation,PreparedGeometryOperation,PreparedGeometryTeeOperation,TeeGeometryOperation
public interface GeometryOperationInterface for classes which execute operations onGeometrys. 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
- Author:
- Martin Davis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClassgetReturnType(String opName)Gets the class of the return type of the given operation.Resultinvoke(String opName, Geometry geometry, Object[] args)Invokes an operation on aGeometry.
-
-
-
Method Detail
-
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 aGeometry.- Parameters:
opName- name of the operationgeometry- the geometry to processargs- 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
-
-