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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ClassgetReturnType(java.lang.String opName)Gets the class of the return type of the given operation.Resultinvoke(java.lang.String opName, Geometry geometry, java.lang.Object[] args)Invokes an operation on aGeometry.
-
-
-
Method Detail
-
getReturnType
java.lang.Class getReturnType(java.lang.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(java.lang.String opName, Geometry geometry, java.lang.Object[] args) throws java.lang.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:
java.lang.Exception- if some error was encountered trying to find or process the operation
-
-