|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.resource.metadata.impl.MetaDataObject_impl
org.apache.uima.analysis_engine.metadata.impl.FlowControllerDeclaration_impl
public class FlowControllerDeclaration_impl
Declares which FlowController is used by the Aggregate Analysis Engine.
Constructor Summary | |
---|---|
FlowControllerDeclaration_impl()
|
Method Summary | |
---|---|
void |
buildFromXMLElement(org.w3c.dom.Element aElement,
XMLParser aParser,
XMLParser.ParsingOptions aOptions)
Initializes this object from its XML DOM representation. |
Import |
getImport()
Gets the import that references the FlowController specifier. |
java.lang.String |
getKey()
Gets the key that can be used to refer to the FlowController in configuration parameter overrides and Sofa mappings. |
ResourceSpecifier |
getSpecifier()
Retrieves the ResourceSpecifier used to determine which FlowController is used
by the AnalysisEngine. |
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 XmlizationInfo |
getXmlizationInfo()
To be implemented by subclasses to return information describing how to represent this object in XML. |
void |
resolveImports()
Resolves an imported FlowController specifier, if there is one. |
void |
resolveImports(ResourceManager aResourceManager)
Resolves an imported FlowController specifier, if there is one. |
void |
setImport(Import aImport)
Sets the import that references the FlowController specifier. |
void |
setKey(java.lang.String aKey)
Sets the key that can be used to refer to the FlowController in configuration parameter overrides and Sofa mappings. |
void |
setSpecifier(ResourceSpecifier aSpecifier)
Sets the ResourceSpecifier used to determine which FlowController is used by the
AnalysisEngine. |
Methods inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl |
---|
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, 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 |
Methods inherited from interface org.apache.uima.util.XMLizable |
---|
buildFromXMLElement, toXML, toXML, toXML, toXML |
Constructor Detail |
---|
public FlowControllerDeclaration_impl()
Method Detail |
---|
public java.lang.String getKey()
FlowControllerDeclaration
getKey
in interface FlowControllerDeclaration
public void setKey(java.lang.String aKey)
FlowControllerDeclaration
setKey
in interface FlowControllerDeclaration
aKey
- the key to assign to the FlowControllerpublic Import getImport()
FlowControllerDeclaration
getImport
in interface FlowControllerDeclaration
public void setImport(Import aImport)
FlowControllerDeclaration
setImport
in interface FlowControllerDeclaration
aImport
- an object containing the import information, or null if no import is to be usedpublic ResourceSpecifier getSpecifier()
FlowControllerDeclaration
ResourceSpecifier
used to determine which FlowController is used
by the AnalysisEngine.
getSpecifier
in interface FlowControllerDeclaration
ResourceSpecifier
that specifies a FlowController.public void setSpecifier(ResourceSpecifier aSpecifier)
FlowControllerDeclaration
ResourceSpecifier
used to determine which FlowController is used by the
AnalysisEngine.
setSpecifier
in interface FlowControllerDeclaration
aSpecifier
- a ResourceSpecifier
that specifies a FlowControllerpublic void resolveImports() throws InvalidXMLException
FlowControllerDeclaration
specifier
property
of this object is set to the result of parsing the imported descriptor. The import is then
deleted.
resolveImports
in interface FlowControllerDeclaration
InvalidXMLException
- if either the import target does not exist or is invalidpublic void resolveImports(ResourceManager aResourceManager) throws InvalidXMLException
FlowControllerDeclaration
specifier
property
of this object is set to the result of parsing the imported descriptor. The import is then
deleted.
resolveImports
in interface FlowControllerDeclaration
aResourceManager
- the Resource Manager used to locate an XML file imported by name
InvalidXMLException
- if either the import target does not exist or is invalidpublic void buildFromXMLElement(org.w3c.dom.Element aElement, XMLParser aParser, XMLParser.ParsingOptions aOptions) throws InvalidXMLException
MetaDataObject_impl
XMLParser
.
buildFromXMLElement
in interface XMLizable
buildFromXMLElement
in class MetaDataObject_impl
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
InvalidXMLException
- if the input XML element does not specify a valid objectprotected org.xml.sax.helpers.AttributesImpl getXMLAttributes()
MetaDataObject_impl
toXML(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_impl
protected XmlizationInfo getXmlizationInfo()
MetaDataObject_impl
getXmlizationInfo
in class MetaDataObject_impl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |