public class LoggingGeometryOperation extends Object implements GeometryOperation
GeometryOperation
which logs
the input and output from another
GeometryOperation
.
The log is sent to System.out
.Constructor and Description |
---|
LoggingGeometryOperation() |
LoggingGeometryOperation(GeometryOperation geomOp) |
Modifier and Type | Method and Description |
---|---|
Class |
getReturnType(String opName)
Gets the class of the return type of the given operation.
|
Result |
invoke(String opName,
Geometry geometry,
Object[] args)
Invokes an operation on a
Geometry . |
public LoggingGeometryOperation()
public LoggingGeometryOperation(GeometryOperation geomOp)
public Class getReturnType(String opName)
GeometryOperation
getReturnType
in interface GeometryOperation
opName
- the name of the operationpublic Result invoke(String opName, Geometry geometry, Object[] args) throws Exception
GeometryOperation
Geometry
.invoke
in interface GeometryOperation
opName
- name of the operationgeometry
- the geometry to processargs
- the arguments to the operation (which may be typed as Strings)Exception
- if some error was encountered trying to find or process the operationCopyright © 2016. All rights reserved.