Class ConfigurationParameterDeclarations_impl
java.lang.Object
org.apache.uima.resource.metadata.impl.MetaDataObject_impl
org.apache.uima.resource.metadata.impl.ConfigurationParameterDeclarations_impl
- All Implemented Interfaces:
Serializable
,Cloneable
,ConfigurationParameterDeclarations
,MetaDataObject
,XMLizable
public class ConfigurationParameterDeclarations_impl
extends MetaDataObject_impl
implements ConfigurationParameterDeclarations
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.Serializer
-
Field Summary
Fields inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
serialContext
Fields inherited from interface org.apache.uima.resource.metadata.ConfigurationParameterDeclarations
SEARCH_STRATEGY_DEFAULT_FALLBACK, SEARCH_STRATEGY_LANGUAGE_FALLBACK, SEARCH_STRATEGY_NONE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ConfigurationParameter
_getConfigurationParameter
(ConfigurationParameter[] aParams, String aName) void
addCommonParameter
(ConfigurationParameter aConfigurationParameter) Adds a Configuration Parameter that is common to all groups.void
addConfigurationGroup
(ConfigurationGroup aConfigurationGroup) Adds a Configuration Group.void
addConfigurationParameter
(ConfigurationParameter aConfigurationParameter) Adds a Configuration Parameter that is not in any group.void
buildFromXMLElement
(Element aElement, XMLParser aParser, XMLParser.ParsingOptions aOptions) Overridden to provide custom XMLization.Gets the configuration parameters that are common to all groups.getConfigurationGroupDeclarations
(String aGroupName) Gets the declarations of a named configuration group.Gets the configuration parameter groups for this Resource.getConfigurationParameter
(String aGroupName, String aParamName) Gets a configuration parameter.Gets the configuration parameters for this Resource.Gets the name of the default configuration group.Gets the configuration parameter search strategy.protected AttributesImpl
Called by theMetaDataObject_impl.toXML(ContentHandler, boolean)
method to get the XML attributes that will be written as part of the element's tag.protected String
Overridden to return defaultGroup and searchStrategy as XML attributes.protected XmlizationInfo
To be implemented by subclasses to return information describing how to represent this object in XML.void
removeCommonParameter
(ConfigurationParameter aConfigurationParameter) Removes an Configuration Parameter that is common to all groups.void
removeConfigurationGroup
(ConfigurationGroup aConfigurationGroup) Removes an Configuration Groupvoid
removeConfigurationParameter
(ConfigurationParameter aConfigurationParameter) Removes an Configuration Parameter that is not in any group.void
setCommonParameters
(ConfigurationParameter[] aParams) Sets the configuration parameters that are common to all groups.void
setConfigurationGroups
(ConfigurationGroup[] aGroups) Sets the configuration parameter groups for this Resource.void
setConfigurationParameters
(ConfigurationParameter[] aParams) Sets the configuration parameters for this Resource.void
setDefaultGroupName
(String aGroupName) Sets the name of the default configuration group.void
setSearchStrategy
(String aStrategy) Sets the configuration parameter search strategy.Methods inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
buildFromXMLElement, clone, equals, getAdditionalAttributes, getAttributeClass, getAttributeValue, getInfoset, getMatchingNode, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSerialContext, getSourceUrl, getSourceUrlString, getWrapperClass, hashCode, isModifiable, listAttributes, readArrayPropertyValueFromXMLElement, readMapPropertyFromXml, readPropertyValueFromXMLElement, readUnknownPropertyValueFromXMLElement, resolveSettings, setAttributeValue, setInfoset, setSourceUrl, setSourceUrlIfNull, toString, toXML, toXML, toXML, toXML, valueIsNullOrEmptyArray, writeArrayPropertyAsElement, writeMapPropertyToXml, writePropertyAsElement
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.uima.resource.metadata.MetaDataObject
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
-
Constructor Details
-
ConfigurationParameterDeclarations_impl
public ConfigurationParameterDeclarations_impl()
-
-
Method Details
-
getConfigurationParameters
Description copied from interface:ConfigurationParameterDeclarations
Gets the configuration parameters for this Resource. This gets configuration parameters that are not defined within a group - see alsoConfigurationParameterDeclarations.getConfigurationGroups()
.- Specified by:
getConfigurationParameters
in interfaceConfigurationParameterDeclarations
- Returns:
- an array containing
ConfigurationParameter
objects, each of which describes a configuration parameter for this Resource. - See Also:
-
setConfigurationParameters
Description copied from interface:ConfigurationParameterDeclarations
Sets the configuration parameters for this Resource. This sets the configuration parameters that are not defined within groups - see alsoConfigurationParameterDeclarations.setConfigurationGroups(ConfigurationGroup[])
.- Specified by:
setConfigurationParameters
in interfaceConfigurationParameterDeclarations
- Parameters:
aParams
- an array containingConfigurationParameter
objects, each of which describes a configuration parameter for this Resource.- See Also:
-
getCommonParameters
Description copied from interface:ConfigurationParameterDeclarations
Gets the configuration parameters that are common to all groups. This property is only meaningful if at least one group is defined.- Specified by:
getCommonParameters
in interfaceConfigurationParameterDeclarations
- Returns:
- an array containing
ConfigurationParameter
objects, each of which describes a parameter common to all groups. - See Also:
-
getConfigurationGroups
Description copied from interface:ConfigurationParameterDeclarations
Gets the configuration parameter groups for this Resource.- Specified by:
getConfigurationGroups
in interfaceConfigurationParameterDeclarations
- Returns:
- an array containing
ConfigurationGroup
objects, each of which describes a configuration parameter group for this Resource. - See Also:
-
getDefaultGroupName
Description copied from interface:ConfigurationParameterDeclarations
Gets the name of the default configuration group. This must refer to the names of theconfiguration groups
.- Specified by:
getDefaultGroupName
in interfaceConfigurationParameterDeclarations
- Returns:
- the name of the default configuration group
- See Also:
-
getSearchStrategy
Description copied from interface:ConfigurationParameterDeclarations
Gets the configuration parameter search strategy. Valid values for this property are defined by constants on this interface.- Specified by:
getSearchStrategy
in interfaceConfigurationParameterDeclarations
- Returns:
- the configuration parameter search strategy
- See Also:
-
setCommonParameters
Description copied from interface:ConfigurationParameterDeclarations
Sets the configuration parameters that are common to all groups. This property is only meaningful if at least one group is defined.- Specified by:
setCommonParameters
in interfaceConfigurationParameterDeclarations
- Parameters:
aParams
- an array containingConfigurationParameter
objects, each of which describes a parameter common to all groups.- See Also:
-
setConfigurationGroups
Description copied from interface:ConfigurationParameterDeclarations
Sets the configuration parameter groups for this Resource.- Specified by:
setConfigurationGroups
in interfaceConfigurationParameterDeclarations
- Parameters:
aGroups
- an array containingConfigurationGroup
objects, each of which describes a configuration parameter group for this Resource.- See Also:
-
setDefaultGroupName
Description copied from interface:ConfigurationParameterDeclarations
Sets the name of the default configuration group. This must refer to the names of theconfiguration groups
.- Specified by:
setDefaultGroupName
in interfaceConfigurationParameterDeclarations
- Parameters:
aGroupName
- the name of the default configuration group- See Also:
-
setSearchStrategy
Description copied from interface:ConfigurationParameterDeclarations
Sets the configuration parameter search strategy. Valid values for this property are defined by constants on this interface.- Specified by:
setSearchStrategy
in interfaceConfigurationParameterDeclarations
- Parameters:
aStrategy
- the configuration parameter search strategy- See Also:
-
getConfigurationParameter
Description copied from interface:ConfigurationParameterDeclarations
Gets a configuration parameter.- Specified by:
getConfigurationParameter
in interfaceConfigurationParameterDeclarations
- Parameters:
aGroupName
- the name of a group, ornull
for no groupaParamName
- the name of the parameter- Returns:
- the specified parameter,
null
if it does not exist - See Also:
-
getConfigurationGroupDeclarations
Description copied from interface:ConfigurationParameterDeclarations
Gets the declarations of a named configuration group. There may be more than one declaration for a single group name; in this case, all parameters contained in each of these declarations are considered part of the named group.- Specified by:
getConfigurationGroupDeclarations
in interfaceConfigurationParameterDeclarations
- Parameters:
aGroupName
- the name of a group- Returns:
- an array of ConfigurationGroup declarations having the name
aGroupName
. If there are no such groups, an empty array is returned. - See Also:
-
addConfigurationParameter
Description copied from interface:ConfigurationParameterDeclarations
Adds a Configuration Parameter that is not in any group.- Specified by:
addConfigurationParameter
in interfaceConfigurationParameterDeclarations
- Parameters:
aConfigurationParameter
- the Configuration Parameter to add- See Also:
-
removeConfigurationParameter
Description copied from interface:ConfigurationParameterDeclarations
Removes an Configuration Parameter that is not in any group.- Specified by:
removeConfigurationParameter
in interfaceConfigurationParameterDeclarations
- Parameters:
aConfigurationParameter
- the Configuration Parameter to remove (must be == with an ConfigurationParameter in this collection, or this method will do nothing).- See Also:
-
addCommonParameter
Description copied from interface:ConfigurationParameterDeclarations
Adds a Configuration Parameter that is common to all groups.- Specified by:
addCommonParameter
in interfaceConfigurationParameterDeclarations
- Parameters:
aConfigurationParameter
- the Configuration Parameter to add- See Also:
-
removeCommonParameter
Description copied from interface:ConfigurationParameterDeclarations
Removes an Configuration Parameter that is common to all groups.- Specified by:
removeCommonParameter
in interfaceConfigurationParameterDeclarations
- Parameters:
aConfigurationParameter
- the Configuration Parameter to remove (must be == with an ConfigurationParameter in this collection, or this method will do nothing).- See Also:
-
addConfigurationGroup
Description copied from interface:ConfigurationParameterDeclarations
Adds a Configuration Group.- Specified by:
addConfigurationGroup
in interfaceConfigurationParameterDeclarations
- Parameters:
aConfigurationGroup
- the Configuration Group to add- See Also:
-
removeConfigurationGroup
Description copied from interface:ConfigurationParameterDeclarations
Removes an Configuration Group- Specified by:
removeConfigurationGroup
in interfaceConfigurationParameterDeclarations
- Parameters:
aConfigurationGroup
- the Configuration Group to remove (must be == with an ConfigurationGroup defined on this resource, or this method will do nothing).- See Also:
-
_getConfigurationParameter
protected ConfigurationParameter _getConfigurationParameter(ConfigurationParameter[] aParams, String aName) -
buildFromXMLElement
public void buildFromXMLElement(Element aElement, XMLParser aParser, XMLParser.ParsingOptions aOptions) throws InvalidXMLException Overridden to provide custom XMLization.- Specified by:
buildFromXMLElement
in interfaceXMLizable
- Overrides:
buildFromXMLElement
in classMetaDataObject_impl
- Parameters:
aElement
- the XML element that represents this object.aParser
- a reference to the UIMAXMLParser
. TheXMLParser.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:
-
getXMLAttributeString
Overridden to return defaultGroup and searchStrategy as XML attributes. 9/2013: superclasses don't have this method, so can't be overridden. 9/2013: method never called- Returns:
- -
-
getXMLAttributes
Description copied from class:MetaDataObject_impl
Called by theMetaDataObject_impl.toXML(ContentHandler, boolean)
method to get the XML attributes that will be written as part of the element's tag. By default this method returns an empty Attributes object. Subclasses may override it in order to write attributes to the XML.- Overrides:
getXMLAttributes
in classMetaDataObject_impl
- Returns:
- an object defining the attributes to be written to the XML
- See Also:
-
getXmlizationInfo
Description copied from class:MetaDataObject_impl
To be implemented by subclasses to return information describing how to represent this object in XML.- Specified by:
getXmlizationInfo
in classMetaDataObject_impl
- Returns:
- information defining this object's XML representation
- See Also:
-