Package org.openrefine.model
Class RunnerConfiguration
- java.lang.Object
-
- org.openrefine.model.RunnerConfiguration
-
- Direct Known Subclasses:
RunnerConfigurationImpl
public abstract class RunnerConfiguration extends Object
Object supplying configuration parameters to a datamodel instance.
-
-
Field Summary
Fields Modifier and Type Field Description static RunnerConfigurationemptyprotected org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description RunnerConfiguration()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intgetIntParameter(String key, int defaultValue)Retrieves a configuration parameter as an integer.longgetLongParameter(String key, long defaultValue)Retrieves a configuration parameter as a long.abstract StringgetParameter(String key, String defaultValue)Retrieves a configuration parameter as a string.
-
-
-
Field Detail
-
logger
protected final org.slf4j.Logger logger
-
empty
public static final RunnerConfiguration empty
-
-
Method Detail
-
getParameter
public abstract String getParameter(String key, String defaultValue)
Retrieves a configuration parameter as a string.- Parameters:
key- the key of the configuration parameterdefaultValue- the default value to return if the configuration parameter was not supplied
-
getIntParameter
public int getIntParameter(String key, int defaultValue)
Retrieves a configuration parameter as an integer.- Parameters:
key- the key of the configuration parameterdefaultValue- the default value to return if the configuration parameter was not supplied
-
getLongParameter
public long getLongParameter(String key, long defaultValue)
Retrieves a configuration parameter as a long.- Parameters:
key- the key of the configuration parameterdefaultValue- the default value to return if the configuration parameter was not supplied
-
-