Class ConfigurationGroup_impl
- java.lang.Object
-
- org.apache.uima.resource.metadata.impl.MetaDataObject_impl
-
- org.apache.uima.resource.metadata.impl.ConfigurationGroup_impl
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,ConfigurationGroup,MetaDataObject,XMLizable
public class ConfigurationGroup_impl extends MetaDataObject_impl implements ConfigurationGroup
Reference implementation ofConfigurationGroup.- See Also:
- Serialized Form
-
-
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 Modifier and Type Field Description private ConfigurationParameter[]mConfigurationParametersParameters contained within the group(s).private java.lang.String[]mNamesGroup names.(package private) static longserialVersionUIDprivate static XmlizationInfoXMLIZATION_INFO-
Fields inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
serialContext
-
-
Constructor Summary
Constructors Constructor Description ConfigurationGroup_impl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConfigurationParameter(ConfigurationParameter aConfigurationParameter)Adds a Configuration Parameter to this group.voidbuildFromXMLElement(org.w3c.dom.Element aElement, XMLParser aParser, XMLParser.ParsingOptions aOptions)Overridden to readnamesproperty from XML attribute.ConfigurationParameter[]getConfigurationParameters()Gets the configuration parameters in this group.java.lang.String[]getNames()Gets the group names for thisConfigurationGroupobject.protected org.xml.sax.helpers.AttributesImplgetXMLAttributes()Overridden to write thenamesproperty as an XML attribute.protected XmlizationInfogetXmlizationInfo()To be implemented by subclasses to return information describing how to represent this object in XML.voidremoveConfigurationParameter(ConfigurationParameter aConfigurationParameter)Removes an Configuration Parameter from this group.voidsetConfigurationParameters(ConfigurationParameter[] aParams)Sets the configuration parameters in this group.voidsetNames(java.lang.String[] aNames)Sets the group names for thisConfigurationGroupobject.-
Methods inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
buildFromXMLElement, clone, equals, getAdditionalAttributes, getAttributeClass, getAttributes, getAttributeValue, getInfoset, getMatchingNode, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSerialContext, getSourceUrl, getSourceUrlString, getUnfilteredAttributes, 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
-
-
-
-
Field Detail
-
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
-
mNames
private java.lang.String[] mNames
Group names.
-
mConfigurationParameters
private ConfigurationParameter[] mConfigurationParameters
Parameters contained within the group(s).
-
XMLIZATION_INFO
private static final XmlizationInfo XMLIZATION_INFO
-
-
Method Detail
-
getNames
public java.lang.String[] getNames()
Description copied from interface:ConfigurationGroupGets the group names for thisConfigurationGroupobject.- Specified by:
getNamesin interfaceConfigurationGroup- Returns:
- an array of group names. Names are not allowed to contain whitespace.
- See Also:
ConfigurationGroup.getNames()
-
setNames
public void setNames(java.lang.String[] aNames)
Description copied from interface:ConfigurationGroupSets the group names for thisConfigurationGroupobject.- Specified by:
setNamesin interfaceConfigurationGroup- Parameters:
aNames- an array of group names. Names are not allowed to contain whitespace.- See Also:
ConfigurationGroup.setNames(java.lang.String[])
-
getConfigurationParameters
public ConfigurationParameter[] getConfigurationParameters()
Description copied from interface:ConfigurationGroupGets the configuration parameters in this group.- Specified by:
getConfigurationParametersin interfaceConfigurationGroup- Returns:
- an array containing
ConfigurationParameterobjects, each of which describes a configuration parameter in this group. - See Also:
ConfigurationGroup.getConfigurationParameters()
-
setConfigurationParameters
public void setConfigurationParameters(ConfigurationParameter[] aParams)
Description copied from interface:ConfigurationGroupSets the configuration parameters in this group.- Specified by:
setConfigurationParametersin interfaceConfigurationGroup- Parameters:
aParams- an array containingConfigurationParameterobjects, each of which describes a configuration parameter in this group.- See Also:
ConfigurationGroup.setConfigurationParameters(ConfigurationParameter[])
-
addConfigurationParameter
public void addConfigurationParameter(ConfigurationParameter aConfigurationParameter)
Description copied from interface:ConfigurationGroupAdds a Configuration Parameter to this group.- Specified by:
addConfigurationParameterin interfaceConfigurationGroup- Parameters:
aConfigurationParameter- the Configuration Parameter to add
-
removeConfigurationParameter
public void removeConfigurationParameter(ConfigurationParameter aConfigurationParameter)
Description copied from interface:ConfigurationGroupRemoves an Configuration Parameter from this group.- Specified by:
removeConfigurationParameterin interfaceConfigurationGroup- Parameters:
aConfigurationParameter- the Configuration Parameter to remove (must be == with an ConfigurationParameter in this group, or this method will do nothing).
-
getXMLAttributes
protected org.xml.sax.helpers.AttributesImpl getXMLAttributes()
Overridden to write thenamesproperty as an XML attribute.- Overrides:
getXMLAttributesin classMetaDataObject_impl- Returns:
- an object defining the attributes to be written to the XML
- See Also:
MetaDataObject_impl.getXMLAttributes()
-
buildFromXMLElement
public void buildFromXMLElement(org.w3c.dom.Element aElement, XMLParser aParser, XMLParser.ParsingOptions aOptions) throws InvalidXMLExceptionOverridden to readnamesproperty from XML attribute.- Specified by:
buildFromXMLElementin interfaceXMLizable- Overrides:
buildFromXMLElementin 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:
XMLizable.buildFromXMLElement(org.w3c.dom.Element, org.apache.uima.util.XMLParser)
-
getXmlizationInfo
protected XmlizationInfo getXmlizationInfo()
Description copied from class:MetaDataObject_implTo be implemented by subclasses to return information describing how to represent this object in XML.- Specified by:
getXmlizationInfoin classMetaDataObject_impl- Returns:
- information defining this object's XML representation
- See Also:
MetaDataObject_impl.getXmlizationInfo()
-
-