Class GeometryOperationContext

java.lang.Object
org.gvsig.fmap.geom.operation.GeometryOperationContext

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
  • Constructor Details

    • GeometryOperationContext

      public GeometryOperationContext()
  • Method Details

    • 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 -