public class ConfigurationParameterSettings_impl extends MetaDataObject_impl implements ConfigurationParameterSettings
ConfigurationParameterSettings
.MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.Serializer
serialContext
Constructor and Description |
---|
ConfigurationParameterSettings_impl() |
Modifier and Type | Method and Description |
---|---|
void |
buildFromXMLElement(Element aElement,
XMLParser aParser,
XMLParser.ParsingOptions aOptions)
Overridden becuase of settingsForGroups property, which is a Map and isn't handled by default
XMLization routines.
|
List<MetaDataObject_impl.MetaDataAttr> |
getAdditionalAttributes()
Override this method to include additional attributes
|
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.
|
protected XmlizationInfo |
getXmlizationInfo()
To be implemented by subclasses to return information describing how to represent this object
in XML.
|
List<NameClassPair> |
listAttributes()
Deprecated.
- use getAdditionalAttributes instead
|
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.
|
protected void |
writePropertyAsElement(PropertyXmlInfo aPropInfo,
String aNamespace)
Overridden to write the settingsForGroups property, whose value is a Map, which is not
supported by the default XMLization routines.
|
buildFromXMLElement, clone, equals, getAttributeClass, getAttributeValue, getInfoset, getMatchingNode, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSerialContext, getSourceUrl, getSourceUrlString, getWrapperClass, getXMLAttributes, hashCode, isModifiable, readArrayPropertyValueFromXMLElement, readMapPropertyFromXml, readPropertyValueFromXMLElement, readUnknownPropertyValueFromXMLElement, resolveSettings, setAttributeValue, setInfoset, setSourceUrl, setSourceUrlIfNull, toString, toXML, toXML, toXML, toXML, valueIsNullOrEmptyArray, writeArrayPropertyAsElement, writeMapPropertyToXml
finalize, getClass, notify, notifyAll, wait, wait, wait
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, setAttributeValue, setSourceUrl
public NameValuePair[] getParameterSettings()
ConfigurationParameterSettings
getParameterSettings
in interface ConfigurationParameterSettings
NameValuePair
objects, each of which contains a parameter
name and the value of that parameterConfigurationParameterSettings.getParameterSettings()
public void setParameterSettings(NameValuePair[] aSettings)
ConfigurationParameterSettings
setParameterSettings
in interface ConfigurationParameterSettings
aSettings
- an array of NameValuePair
objects, each of which contains a parameter
name and the value of that parameterConfigurationParameterSettings.setParameterSettings(NameValuePair[])
public Map<String,NameValuePair[]> getSettingsForGroups()
ConfigurationParameterSettings
getSettingsForGroups
in interface ConfigurationParameterSettings
String
keys (the group names) and NameValuePair
[]
values (the settings for parameters in that group.ConfigurationParameterSettings.getSettingsForGroups()
public Object getParameterValue(String aParamName)
ConfigurationParameterSettings
getParameterValue
in interface ConfigurationParameterSettings
aParamName
- the name of a parameter that is not in any groupaParamName
ConfigurationParameterSettings.getParameterValue(String)
public Object getParameterValue(String aGroupName, String aParamName)
ConfigurationParameterSettings
getParameterValue
in interface ConfigurationParameterSettings
aGroupName
- the name of a configuration group. If this parameter is
null
, this method will return the same value as
ConfigurationParameterSettings.getParameterValue(String)
.aParamName
- the name of a parameter in the groupaGroupName
with
name aParamName
ConfigurationParameterSettings.getParameterValue(java.lang.String,
java.lang.String)
public void setParameterValue(String aParamName, Object aValue)
ConfigurationParameterSettings
setParameterValue
in interface ConfigurationParameterSettings
aParamName
- the name of a parameter that is not in any groupaValue
- the value to assign to the parameterConfigurationParameterSettings.setParameterValue(java.lang.String,
java.lang.Object)
public void setParameterValue(String aGroupName, String aParamName, Object aValue)
ConfigurationParameterSettings
setParameterValue
in interface ConfigurationParameterSettings
aGroupName
- the name of a configuration groupaParamName
- the name of a parameter in the groupaValue
- the value to assign to the parameterConfigurationParameterSettings.setParameterValue(java.lang.String,
java.lang.String, java.lang.Object)
protected XmlizationInfo getXmlizationInfo()
MetaDataObject_impl
getXmlizationInfo
in class MetaDataObject_impl
MetaDataObject_impl.getXmlizationInfo()
public List<MetaDataObject_impl.MetaDataAttr> getAdditionalAttributes()
MetaDataObject_impl
getAdditionalAttributes
in class MetaDataObject_impl
@Deprecated public List<NameClassPair> listAttributes()
listAttributes
in interface MetaDataObject
listAttributes
in class MetaDataObject_impl
NameClassPair
objects, each of which
contains the name of a parameter and the Class of its value. For primitive types, the
wrapper classes will be returned (e.g. java.lang.Integer
instead of
int).MetaDataObject.listAttributes()
public void buildFromXMLElement(Element aElement, XMLParser aParser, XMLParser.ParsingOptions aOptions) throws InvalidXMLException
buildFromXMLElement
in interface XMLizable
buildFromXMLElement
in class MetaDataObject_impl
aElement
- the XML element that represents this object.aParser
- a reference to the UIMA XMLParser
. The
XMLParser.buildObject(Element)
method can be used to construct sub-objects.aOptions
- option settingsInvalidXMLException
- if the input XML element does not specify a valid objectXMLizable.buildFromXMLElement(org.w3c.dom.Element,
org.apache.uima.util.XMLParser)
protected void writePropertyAsElement(PropertyXmlInfo aPropInfo, String aNamespace) throws SAXException
writePropertyAsElement
in class MetaDataObject_impl
aPropInfo
- information on how to represent the property in XMLaNamespace
- XML namespace URI for this object
representationSAXException
- -MetaDataObject_impl.writePropertyAsElement(PropertyXmlInfo, String)
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.