Interface ConfigurationParameterSettings
- All Superinterfaces:
Cloneable
,MetaDataObject
,Serializable
,XMLizable
- All Known Implementing Classes:
ConfigurationParameterSettings_impl
The values for
ConfigurationParameter
s in a Resource. When the Resource has declared
ConfigurationGroup
s, there may be different values for each group.-
Method Summary
Modifier and TypeMethodDescriptionGets the settings for configuration parameters that are not in any group.getParameterValue
(String aParamName) Looks up the value of a parameter.getParameterValue
(String aGroupName, String aParamName) Looks up the value of a parameter in a group.Gets the settings for configuration parameters that are defined within groups.void
setParameterSettings
(NameValuePair... aSettings) Sets the settings for configuration parameters that are not in any group.void
setParameterValue
(String aParamName, Object aValue) Sets the value of a parameter.void
setParameterValue
(String aGroupName, String aParamName, Object aValue) Sets the value of a parameter in a group.Methods inherited from interface org.apache.uima.resource.metadata.MetaDataObject
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
Methods inherited from interface org.apache.uima.util.XMLizable
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
-
Method Details
-
getParameterSettings
NameValuePair[] getParameterSettings()Gets the settings for configuration parameters that are not in any group.- Returns:
- an array of
NameValuePair
objects, each of which contains a parameter name and the value of that parameter
-
setParameterSettings
Sets the settings for configuration parameters that are not in any group.- Parameters:
aSettings
- an array ofNameValuePair
objects, each of which contains a parameter name and the value of that parameter
-
getSettingsForGroups
Map<String,NameValuePair[]> getSettingsForGroups()Gets the settings for configuration parameters that are defined within groups.- Returns:
- a Map with
String
keys (the group names) andNameValuePair
[] values (the settings for parameters in that group.
-
getParameterValue
Looks up the value of a parameter. This is a "dumb" getter and does not follow any fallback strategies. It will only return the value of a parameter that is not defined in any group.- Parameters:
aParamName
- the name of a parameter that is not in any group- Returns:
- the value of the parameter with name
aParamName
-
getParameterValue
Looks up the value of a parameter in a group. This is a "dumb" getter and does not follow any fallback strategies.- Parameters:
aGroupName
- the name of a configuration group. If this parameter isnull
, this method will return the same value asgetParameterValue(String)
.aParamName
- the name of a parameter in the group- Returns:
- the value of the parameter in group
aGroupName
with nameaParamName
-
setParameterValue
Sets the value of a parameter. This only works for a parameter that is not defined in any group.- Parameters:
aParamName
- the name of a parameter that is not in any groupaValue
- the value to assign to the parameter
-
setParameterValue
Sets the value of a parameter in a group.- Parameters:
aGroupName
- the name of a configuration groupaParamName
- the name of a parameter in the groupaValue
- the value to assign to the parameter
-