Class CasProcessorConfigurationParameterSettingsImpl
- java.lang.Object
-
- org.apache.uima.collection.impl.metadata.cpe.CasProcessorConfigurationParameterSettingsImpl
-
- All Implemented Interfaces:
CasProcessorConfigurationParameterSettings
public class CasProcessorConfigurationParameterSettingsImpl extends java.lang.Object implements CasProcessorConfigurationParameterSettings
The Class CasProcessorConfigurationParameterSettingsImpl.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ArrayList
paramList
The param list.private NameValuePair[]
params
The params.
-
Constructor Summary
Constructors Modifier Constructor Description protected
CasProcessorConfigurationParameterSettingsImpl()
Instantiates a new cas processor configuration parameter settings impl.protected
CasProcessorConfigurationParameterSettingsImpl(ConfigurationParameterSettings aCps)
Instantiates a new cas processor configuration parameter settings impl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NameValuePair[]
getParameterSettings()
Gets the settings for configuration parameters that are not in any group.java.lang.Object
getParameterValue(java.lang.String aParamName)
Looks up the value of a parameter.private NameValuePair
getParamValueObject(java.lang.String aParamName)
Gets the param value object.void
setParameterValue(java.lang.String aParamName, java.lang.Object aValue)
Sets the value of a parameter.
-
-
-
Field Detail
-
params
private NameValuePair[] params
The params.
-
paramList
private java.util.ArrayList paramList
The param list.
-
-
Constructor Detail
-
CasProcessorConfigurationParameterSettingsImpl
protected CasProcessorConfigurationParameterSettingsImpl()
Instantiates a new cas processor configuration parameter settings impl.
-
CasProcessorConfigurationParameterSettingsImpl
protected CasProcessorConfigurationParameterSettingsImpl(ConfigurationParameterSettings aCps)
Instantiates a new cas processor configuration parameter settings impl.- Parameters:
aCps
- the a cps
-
-
Method Detail
-
getParameterSettings
public NameValuePair[] getParameterSettings()
Description copied from interface:CasProcessorConfigurationParameterSettings
Gets the settings for configuration parameters that are not in any group.- Specified by:
getParameterSettings
in interfaceCasProcessorConfigurationParameterSettings
- Returns:
- an array of
NameValuePair
objects, each of which contains a parameter name and the value of that parameter
-
getParamValueObject
private NameValuePair getParamValueObject(java.lang.String aParamName)
Gets the param value object.- Parameters:
aParamName
- the a param name- Returns:
- the param value object
-
getParameterValue
public java.lang.Object getParameterValue(java.lang.String aParamName)
Description copied from interface:CasProcessorConfigurationParameterSettings
Looks up the value of a parameter.- Specified by:
getParameterValue
in interfaceCasProcessorConfigurationParameterSettings
- Parameters:
aParamName
- the name of a parameter- Returns:
- the value of the parameter with name
aParamName
-
setParameterValue
public void setParameterValue(java.lang.String aParamName, java.lang.Object aValue)
Description copied from interface:CasProcessorConfigurationParameterSettings
Sets the value of a parameter.- Specified by:
setParameterValue
in interfaceCasProcessorConfigurationParameterSettings
- Parameters:
aParamName
- the name of a parameter that is not in any groupaValue
- the value to assign to the parameter. This must be a String, Boolean, Integer, Float, or an array of one of those types.
-
-