public class ConfigurationParameterSettings_impl extends MetaDataObject_impl implements ConfigurationParameterSettings
ConfigurationParameterSettings.MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.SerializerserialContext| 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, writeMapPropertyToXmlfinalize, getClass, notify, notifyAll, wait, wait, waitclone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, setAttributeValue, setSourceUrlpublic NameValuePair[] getParameterSettings()
ConfigurationParameterSettingsgetParameterSettings in interface ConfigurationParameterSettingsNameValuePair objects, each of which contains a parameter name
and the value of that parameterConfigurationParameterSettings.getParameterSettings()public void setParameterSettings(NameValuePair[] aSettings)
ConfigurationParameterSettingssetParameterSettings in interface ConfigurationParameterSettingsaSettings - 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()
ConfigurationParameterSettingsgetSettingsForGroups in interface ConfigurationParameterSettingsString keys (the group names) and NameValuePair[]
values (the settings for parameters in that group.ConfigurationParameterSettings.getSettingsForGroups()public Object getParameterValue(String aParamName)
ConfigurationParameterSettingsgetParameterValue in interface ConfigurationParameterSettingsaParamName - the name of a parameter that is not in any groupaParamNameConfigurationParameterSettings.getParameterValue(String)public Object getParameterValue(String aGroupName, String aParamName)
ConfigurationParameterSettingsgetParameterValue in interface ConfigurationParameterSettingsaGroupName - 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
aParamNameConfigurationParameterSettings.getParameterValue(java.lang.String, java.lang.String)public void setParameterValue(String aParamName, Object aValue)
ConfigurationParameterSettingssetParameterValue in interface ConfigurationParameterSettingsaParamName - 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)
ConfigurationParameterSettingssetParameterValue in interface ConfigurationParameterSettingsaGroupName - 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_implgetXmlizationInfo in class MetaDataObject_implMetaDataObject_impl.getXmlizationInfo()public List<MetaDataObject_impl.MetaDataAttr> getAdditionalAttributes()
MetaDataObject_implgetAdditionalAttributes in class MetaDataObject_impl@Deprecated public List<NameClassPair> listAttributes()
listAttributes in interface MetaDataObjectlistAttributes in class MetaDataObject_implNameClassPair 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 XMLizablebuildFromXMLElement in class MetaDataObject_implaElement - 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_implaPropInfo - information on how to represent the property in XMLaNamespace - XML namespace URI for this object representationSAXException - -MetaDataObject_impl.writePropertyAsElement(PropertyXmlInfo, String)Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.