|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConfigurationParameterSettings
The values for ConfigurationParameters in a Resource. When the Resource has declared
ConfigurationGroups, there may be different values for each group.
| Method Summary | |
|---|---|
NameValuePair[] |
getParameterSettings()
Gets the settings for configuration parameters that are not in any group. |
Object |
getParameterValue(String aParamName)
Looks up the value of a parameter. |
Object |
getParameterValue(String aGroupName,
String aParamName)
Looks up the value of a parameter in a group. |
Map<String,NameValuePair[]> |
getSettingsForGroups()
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 Detail |
|---|
NameValuePair[] getParameterSettings()
NameValuePair objects, each of which contains a parameter
name and the value of that parametervoid setParameterSettings(NameValuePair[] aSettings)
aSettings - an array of NameValuePair objects, each of which contains a parameter
name and the value of that parameterMap<String,NameValuePair[]> getSettingsForGroups()
String keys (the group names) and NameValuePair[]
values (the settings for parameters in that group.Object getParameterValue(String aParamName)
aParamName - the name of a parameter that is not in any group
aParamName
Object getParameterValue(String aGroupName,
String aParamName)
aGroupName - the name of a configuration group. If this parameter is
null, this method will return the same value as
getParameterValue(String).aParamName - the name of a parameter in the group
- Returns:
- the value of the parameter in group
aGroupName with
name aParamName
void setParameterValue(String aParamName,
Object aValue)
aParamName - the name of a parameter that is not in any groupaValue - the value to assign to the parameter
void setParameterValue(String aGroupName,
String aParamName,
Object aValue)
aGroupName - the name of a configuration groupaParamName - the name of a parameter in the groupaValue - the value to assign to the parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||