org.gvsig.fmap.geom.operation
Class GeometryOperationContext
java.lang.Object
org.gvsig.fmap.geom.operation.GeometryOperationContext
- Direct Known Subclasses:
- DefaultRelationshipGeometryOperationContext, FromWKBGeometryOperationContext, FromWKTGeometryOperationContext, JTSGeometryOperationContext, PerpendicularOperationContext, PerpendicularPointOperationContext, ToWKBOperationContext, UnitVectorOperationContext
public class GeometryOperationContext
- extends Object
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.
- Author:
- jyarza
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeometryOperationContext
public GeometryOperationContext()
getAttribute
public Object getAttribute(String name)
- Returns an attribute given its name.
If it does not exist returns
null
- Parameters:
name
-
- Returns:
- attribute
setAttribute
public GeometryOperationContext setAttribute(String name,
Object value)
- Sets an attribute
- Parameters:
name
- value
-
Copyright © 2004-2012 gvSIG. All Rights Reserved.