Class ConfigurationParameterSettings_impl
java.lang.Object
org.apache.uima.resource.metadata.impl.MetaDataObject_impl
org.apache.uima.resource.metadata.impl.ConfigurationParameterSettings_impl
- All Implemented Interfaces:
- Serializable,- Cloneable,- ConfigurationParameterSettings,- MetaDataObject,- XMLizable
public class ConfigurationParameterSettings_impl
extends MetaDataObject_impl
implements ConfigurationParameterSettings
Reference implementation of 
ConfigurationParameterSettings.- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_implMetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.Serializer
- 
Field SummaryFields inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_implserialContext
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidbuildFromXMLElement(Element aElement, XMLParser aParser, XMLParser.ParsingOptions aOptions) Overridden becuase of settingsForGroups property, which is a Map and isn't handled by default XMLization routines.Override this method to include additional attributesGets 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.protected XmlizationInfoTo be implemented by subclasses to return information describing how to represent this object in XML.Deprecated.- use getAdditionalAttributes insteadvoidsetParameterSettings(NameValuePair... aSettings) Sets the settings for configuration parameters that are not in any group.voidsetParameterValue(String aParamName, Object aValue) Sets the value of a parameter.voidsetParameterValue(String aGroupName, String aParamName, Object aValue) Sets the value of a parameter in a group.protected voidwritePropertyAsElement(PropertyXmlInfo aPropInfo, String aNamespace) Overridden to write the settingsForGroups property, whose value is a Map, which is not supported by the default XMLization routines.Methods inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_implbuildFromXMLElement, 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, writeMapPropertyToXmlMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.uima.resource.metadata.MetaDataObjectclone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, setAttributeValue, setSourceUrl
- 
Constructor Details- 
ConfigurationParameterSettings_implpublic ConfigurationParameterSettings_impl()
 
- 
- 
Method Details- 
getParameterSettingsDescription copied from interface:ConfigurationParameterSettingsGets the settings for configuration parameters that are not in any group.- Specified by:
- getParameterSettingsin interface- ConfigurationParameterSettings
- Returns:
- an array of NameValuePairobjects, each of which contains a parameter name and the value of that parameter
- See Also:
 
- 
setParameterSettingsDescription copied from interface:ConfigurationParameterSettingsSets the settings for configuration parameters that are not in any group.- Specified by:
- setParameterSettingsin interface- ConfigurationParameterSettings
- Parameters:
- aSettings- an array of- NameValuePairobjects, each of which contains a parameter name and the value of that parameter
- See Also:
 
- 
getSettingsForGroupsDescription copied from interface:ConfigurationParameterSettingsGets the settings for configuration parameters that are defined within groups.- Specified by:
- getSettingsForGroupsin interface- ConfigurationParameterSettings
- Returns:
- a Map with Stringkeys (the group names) andNameValuePair[] values (the settings for parameters in that group.
 
- 
getParameterValueDescription copied from interface:ConfigurationParameterSettingsLooks 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.- Specified by:
- getParameterValuein interface- ConfigurationParameterSettings
- Parameters:
- aParamName- the name of a parameter that is not in any group
- Returns:
- the value of the parameter with name aParamName
 
- 
getParameterValueDescription copied from interface:ConfigurationParameterSettingsLooks up the value of a parameter in a group. This is a "dumb" getter and does not follow any fallback strategies.- Specified by:
- getParameterValuein interface- ConfigurationParameterSettings
- Parameters:
- 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 group
- Returns:
- the value of the parameter in group aGroupNamewith nameaParamName
 
- 
setParameterValueDescription copied from interface:ConfigurationParameterSettingsSets the value of a parameter. This only works for a parameter that is not defined in any group.- Specified by:
- setParameterValuein interface- ConfigurationParameterSettings
- Parameters:
- aParamName- the name of a parameter that is not in any group
- aValue- the value to assign to the parameter
 
- 
setParameterValueDescription copied from interface:ConfigurationParameterSettingsSets the value of a parameter in a group.- Specified by:
- setParameterValuein interface- ConfigurationParameterSettings
- Parameters:
- aGroupName- the name of a configuration group
- aParamName- the name of a parameter in the group
- aValue- the value to assign to the parameter
 
- 
getXmlizationInfoDescription copied from class:MetaDataObject_implTo be implemented by subclasses to return information describing how to represent this object in XML.- Specified by:
- getXmlizationInfoin class- MetaDataObject_impl
- Returns:
- information defining this object's XML representation
 
- 
getAdditionalAttributesDescription copied from class:MetaDataObject_implOverride this method to include additional attributes- Overrides:
- getAdditionalAttributesin class- MetaDataObject_impl
- Returns:
- additional attributes
 
- 
listAttributesDeprecated.- use getAdditionalAttributes insteadOverridden to add the settingsForGroups property to the result list. Default introspection implementation won't return it because it has no set method. We've also overridden the XML import/export methods, though, so that set methods are not required.- Specified by:
- listAttributesin interface- MetaDataObject
- Overrides:
- listAttributesin class- MetaDataObject_impl
- Returns:
- a List containing NameClassPairobjects, 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.Integerinstead of int).
- See Also:
- To be removed in version:
- 4.0.0
 
- 
buildFromXMLElementpublic void buildFromXMLElement(Element aElement, XMLParser aParser, XMLParser.ParsingOptions aOptions) throws InvalidXMLException Overridden becuase of settingsForGroups property, which is a Map and isn't handled by default XMLization routines.- Specified by:
- buildFromXMLElementin interface- XMLizable
- Overrides:
- buildFromXMLElementin class- MetaDataObject_impl
- Parameters:
- 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 settings
- Throws:
- InvalidXMLException- if the input XML element does not specify a valid object
- See Also:
 
- 
writePropertyAsElementprotected void writePropertyAsElement(PropertyXmlInfo aPropInfo, String aNamespace) throws SAXException Overridden to write the settingsForGroups property, whose value is a Map, which is not supported by the default XMLization routines.- Overrides:
- writePropertyAsElementin class- MetaDataObject_impl
- Parameters:
- aPropInfo- information on how to represent the property in XML
- aNamespace- XML namespace URI for this object representation
- Throws:
- SAXException- -
- See Also:
 
 
-