org.h2gis.h2spatialapi
Class AbstractFunction

java.lang.Object
  extended by org.h2gis.h2spatialapi.AbstractFunction
All Implemented Interfaces:
Function
Direct Known Subclasses:
DeterministicScalarFunction

public abstract class AbstractFunction
extends Object
implements Function

Function that handle properties in a map

Author:
Nicolas Fortin

Field Summary
 
Fields inherited from interface org.h2gis.h2spatialapi.Function
PROP_NAME, PROP_REMARKS
 
Constructor Summary
AbstractFunction()
           
 
Method Summary
 void addProperty(String propertyName, Object value)
           
 Object getProperty(String propertyName)
          Optional function properties
 boolean removeProperty(String propertyName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFunction

public AbstractFunction()
Method Detail

getProperty

public Object getProperty(String propertyName)
Description copied from interface: Function
Optional function properties

Specified by:
getProperty in interface Function
Returns:
The value or null if not exists

addProperty

public void addProperty(String propertyName,
                        Object value)
Parameters:
propertyName - Property identifier
value - New property value

removeProperty

public boolean removeProperty(String propertyName)
Parameters:
propertyName - Property identifier
Returns:
True if the property is removed


Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.