public class ConfigurationParameterDeclarations_impl extends MetaDataObject_impl implements ConfigurationParameterDeclarations
SEARCH_STRATEGY_DEFAULT_FALLBACK, SEARCH_STRATEGY_LANGUAGE_FALLBACK, SEARCH_STRATEGY_NONE| Constructor and Description |
|---|
ConfigurationParameterDeclarations_impl() |
| Modifier and Type | Method and Description |
|---|---|
protected ConfigurationParameter |
_getConfigurationParameter(ConfigurationParameter[] aParams,
java.lang.String aName)
Utility method
|
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(org.w3c.dom.Element aElement,
XMLParser aParser,
XMLParser.ParsingOptions aOptions)
Overridden to provide custom XMLization.
|
ConfigurationParameter[] |
getCommonParameters()
Gets the configuration parameters that are common to all groups.
|
ConfigurationGroup[] |
getConfigurationGroupDeclarations(java.lang.String aGroupName)
Gets the declarations of a named configuration group.
|
ConfigurationGroup[] |
getConfigurationGroups()
Gets the configuration parameter groups for this Resource.
|
ConfigurationParameter |
getConfigurationParameter(java.lang.String aGroupName,
java.lang.String aParamName)
Gets a configuration parameter.
|
ConfigurationParameter[] |
getConfigurationParameters()
Gets the configuration parameters for this Resource.
|
java.lang.String |
getDefaultGroupName()
Gets the name of the default configuration group.
|
java.lang.String |
getSearchStrategy()
Gets the configuration parameter search strategy.
|
protected org.xml.sax.helpers.AttributesImpl |
getXMLAttributes()
Called by the
toXML(Writer,String) method to get the XML attributes that will be
written as part of the element's tag. |
protected java.lang.String |
getXMLAttributeString()
Overridden to return defaultGroup and searchStrategy as XML attributes.
|
protected XmlizationInfo |
getXmlizationInfo()
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 Group
|
void |
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(java.lang.String aGroupName)
Sets the name of the default configuration group.
|
void |
setSearchStrategy(java.lang.String aStrategy)
Sets the configuration parameter search strategy.
|
buildFromXMLElement, clone, equals, getAttributeClass, getAttributeValue, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSourceUrl, getSourceUrlString, getWrapperClass, hashCode, isModifiable, listAttributes, readArrayPropertyValueFromXMLElement, readMapPropertyFromXml, readPropertyValueFromXMLElement, readUnknownPropertyValueFromXMLElement, setAttributeValue, setSourceUrl, setSourceUrlIfNull, toString, toXML, toXML, toXML, toXML, writeArrayPropertyAsElement, writeMapPropertyToXml, writePropertyAsElementfinalize, getClass, notify, notifyAll, wait, wait, waitclone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrlpublic ConfigurationParameterDeclarations_impl()
public ConfigurationParameter[] getConfigurationParameters()
ConfigurationParameterDeclarationsConfigurationParameterDeclarations.getConfigurationGroups().getConfigurationParameters in interface ConfigurationParameterDeclarationsConfigurationParameter objects, each of which describes a
configuration parameter for this Resource.org.apache.uima.resource.ConfigurationParameterDeclarations#getConfigurationParameters()public void setConfigurationParameters(ConfigurationParameter[] aParams)
ConfigurationParameterDeclarationsConfigurationParameterDeclarations.setConfigurationGroups(ConfigurationGroup[]).setConfigurationParameters in interface ConfigurationParameterDeclarationsaParams - an array containing ConfigurationParameter objects, each of which describes a
configuration parameter for this Resource.org.apache.uima.resource.ConfigurationParameterDeclarations#setConfigurationParameters(ConfigurationParameter[])public ConfigurationParameter[] getCommonParameters()
ConfigurationParameterDeclarationsgetCommonParameters in interface ConfigurationParameterDeclarationsConfigurationParameter objects, each of which describes a
parameter common to all groups.org.apache.uima.resource.ConfigurationParameterDeclarations#getCommonParameters()public ConfigurationGroup[] getConfigurationGroups()
ConfigurationParameterDeclarationsgetConfigurationGroups in interface ConfigurationParameterDeclarationsConfigurationGroup objects, each of which describes a
configuration parameter group for this Resource.org.apache.uima.resource.ConfigurationParameterDeclarations#getConfigurationGroups()public java.lang.String getDefaultGroupName()
ConfigurationParameterDeclarationsconfiguration groups.getDefaultGroupName in interface ConfigurationParameterDeclarationsorg.apache.uima.resource.ConfigurationParameterDeclarations#getDefaultGroupName()public java.lang.String getSearchStrategy()
ConfigurationParameterDeclarationsgetSearchStrategy in interface ConfigurationParameterDeclarationsorg.apache.uima.resource.ConfigurationParameterDeclarations#getSearchStragtegy()public void setCommonParameters(ConfigurationParameter[] aParams)
ConfigurationParameterDeclarationssetCommonParameters in interface ConfigurationParameterDeclarationsaParams - an array containing ConfigurationParameter objects, each of which describes a
parameter common to all groups.org.apache.uima.resource.ConfigurationParameterDeclarations#setCommonParameters(org.apache.uima.resource.ConfigurationParameter[])public void setConfigurationGroups(ConfigurationGroup[] aGroups)
ConfigurationParameterDeclarationssetConfigurationGroups in interface ConfigurationParameterDeclarationsaGroups - an array containing ConfigurationGroup objects, each of which describes a
configuration parameter group for this Resource.org.apache.uima.resource.ConfigurationParameterDeclarations#setConfigurationGroups(org.apache.uima.resource.ConfigurationGroup[])public void setDefaultGroupName(java.lang.String aGroupName)
ConfigurationParameterDeclarationsconfiguration groups.setDefaultGroupName in interface ConfigurationParameterDeclarationsaGroupName - the name of the default configuration grouporg.apache.uima.resource.ConfigurationParameterDeclarations#setDefaultGroupName(java.lang.String)public void setSearchStrategy(java.lang.String aStrategy)
ConfigurationParameterDeclarationssetSearchStrategy in interface ConfigurationParameterDeclarationsaStrategy - the configuration parameter search strategyorg.apache.uima.resource.ConfigurationParameterDeclarations#setSearchStrategy(java.lang.String)public ConfigurationParameter getConfigurationParameter(java.lang.String aGroupName, java.lang.String aParamName)
ConfigurationParameterDeclarationsgetConfigurationParameter in interface ConfigurationParameterDeclarationsaGroupName - the name of a group, or null for no groupaParamName - the name of the parameternull if it does not existorg.apache.uima.resource.ConfigurationParameterDeclarations#getConfigurationParameter(java.lang.String,
java.lang.String)public ConfigurationGroup[] getConfigurationGroupDeclarations(java.lang.String aGroupName)
ConfigurationParameterDeclarationsgetConfigurationGroupDeclarations in interface ConfigurationParameterDeclarationsaGroupName - the name of a groupaGroupName.
If there are no such groups, an empty array is returned.org.apache.uima.resource.ConfigurationParameterDeclarations#getConfigurationGroup(java.lang.String)public void addConfigurationParameter(ConfigurationParameter aConfigurationParameter)
ConfigurationParameterDeclarationsaddConfigurationParameter in interface ConfigurationParameterDeclarationsaConfigurationParameter - the Configuration Parameter to addpublic void removeConfigurationParameter(ConfigurationParameter aConfigurationParameter)
ConfigurationParameterDeclarationsremoveConfigurationParameter in interface ConfigurationParameterDeclarationsaConfigurationParameter - the Configuration Parameter to remove (must be == with an ConfigurationParameter in
this collection, or this method will do nothing).public void addCommonParameter(ConfigurationParameter aConfigurationParameter)
ConfigurationParameterDeclarationsaddCommonParameter in interface ConfigurationParameterDeclarationsaConfigurationParameter - the Configuration Parameter to addpublic void removeCommonParameter(ConfigurationParameter aConfigurationParameter)
ConfigurationParameterDeclarationsremoveCommonParameter in interface ConfigurationParameterDeclarationsaConfigurationParameter - the Configuration Parameter to remove (must be == with an ConfigurationParameter in
this collection, or this method will do nothing).public void addConfigurationGroup(ConfigurationGroup aConfigurationGroup)
ConfigurationParameterDeclarationsaddConfigurationGroup in interface ConfigurationParameterDeclarationsaConfigurationGroup - the Configuration Group to addpublic void removeConfigurationGroup(ConfigurationGroup aConfigurationGroup)
ConfigurationParameterDeclarationsremoveConfigurationGroup in interface ConfigurationParameterDeclarationsaConfigurationGroup - the Configuration Group to remove (must be == with an ConfigurationGroup defined on
this resource, or this method will do nothing).protected ConfigurationParameter _getConfigurationParameter(ConfigurationParameter[] aParams, java.lang.String aName)
public void buildFromXMLElement(org.w3c.dom.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 java.lang.String getXMLAttributeString()
org.apache.uima.resource.impl.MetaDataObject_impl#getXMLAttributeString()protected org.xml.sax.helpers.AttributesImpl getXMLAttributes()
MetaDataObject_impltoXML(Writer,String) 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.getXMLAttributes in class MetaDataObject_implprotected XmlizationInfo getXmlizationInfo()
MetaDataObject_implgetXmlizationInfo in class MetaDataObject_implorg.apache.uima.resource.impl.MetaDataObject_impl#getXmlizationInfo()Copyright © 2013. All Rights Reserved.