Package org.gvsig.fmap.geom.operation
Class GeometryOperationContext
java.lang.Object
org.gvsig.fmap.geom.operation.GeometryOperationContext
This class is a default parameter container for geometry operation.
Normally every GeometryOperation will extend this class and identify its parameters publicly with getters/setters For those operations that need high performance, parameters should be declared as class members instead of using the setAttribute/getAttribute mechanism. This way you avoid a hash and a cast operation.
Normally every GeometryOperation will extend this class and identify its parameters publicly with getters/setters For those operations that need high performance, parameters should be declared as class members instead of using the setAttribute/getAttribute mechanism. This way you avoid a hash and a cast operation.
- Author:
- jyarza
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) Returns an attribute given its name.setAttribute(String name, Object value) Sets an attribute
-
Constructor Details
-
GeometryOperationContext
public GeometryOperationContext()
-
-
Method Details
-
getAttribute
Returns an attribute given its name. If it does not exist returnsnull- Parameters:
name-- Returns:
- attribute
-
setAttribute
Sets an attribute- Parameters:
name-value-
-