|
||||||||||
| 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.resource.impl.ResourceCreationSpecifier_impl
org.apache.uima.analysis_engine.impl.AnalysisEngineDescription_impl
public class AnalysisEngineDescription_impl
Reference implementation of AnalysisEngineDescription. Note that this class contains two
attributes of class Map, which are not supported by the default XML input/output routines.
Therefore we override the #writeAttributeAsElement(String,Class,Object,Writer) and
#readAttributeFromXMLElement(String,Class,Element,XMLParser) methods.
| Field Summary | |
|---|---|
protected java.lang.String |
ELEM_DELEGATE_ANALYSIS_ENGINE_SPECIFIERS
Name of the "delegateAnalysisEngineSpecifiers" XML Element. |
protected java.lang.String |
PROP_DELEGATE_ANALYSIS_ENGINE_SPECIFIERS
Name of the "delegateAnalysisEngineSpecifiers" property. |
protected java.lang.String |
PROP_DELEGATE_ANALYSIS_ENGINE_SPECIFIERS_WITH_IMPORTS
Name of the "delegateAnalysisEngineSpecifiersWithImports" property. |
| Constructor Summary | |
|---|---|
AnalysisEngineDescription_impl()
Creates a new AnalysisEngineDescription_impl. |
|
| Method Summary | |
|---|---|
void |
buildFromXMLElement(org.w3c.dom.Element aElement,
XMLParser aParser,
XMLParser.ParsingOptions aOptions)
Overridden to set default operational properties if they are not specified in descriptor. |
protected boolean |
capabilitiesContainSofa(java.lang.String aSofaName,
boolean aOutput)
|
protected void |
checkForInvalidParameterOverrides(ConfigurationParameter[] aParams,
java.lang.String aGroupName,
ResourceManager aResourceManager)
Overrides{@link ResourceCreationSpecifier_impl#checkForInvalidParameterOverrides(ConfigurationParameter[], String) to validate parameter overrides in an aggregate AE. |
void |
doFullValidation()
Does full validation of this ResourceCreationSpecifier. |
void |
doFullValidation(ResourceManager aResourceManager)
Does full validation of this ResourceCreationSpecifier. |
java.util.Map<java.lang.String,ResourceSpecifier> |
getAllComponentSpecifiers(ResourceManager aResourceManager)
For an aggregate AnalysisEngine only, gets the ResourceSpecifiers of all components in this aggregate. |
AnalysisEngineMetaData |
getAnalysisEngineMetaData()
Retrieves the metadata that describes the AnalysisEngine. |
java.lang.String |
getAnnotatorImplementationName()
For a primitive AnalysisEngine only, retrieves the name of the annotator implementation. |
ResourceSpecifier |
getComponentSpecifier(java.lang.String key)
Gets the ResourceSpecifier of one a component of this aggregate, based on its key. |
java.util.Map<java.lang.String,ResourceSpecifier> |
getDelegateAnalysisEngineSpecifiers()
For an aggregate AnalysisEngine only, retrieves a collection of ResourceSpecifiers
that indicate which delegate AnalysisEngines comprise the aggregate. |
java.util.Map<java.lang.String,ResourceSpecifier> |
getDelegateAnalysisEngineSpecifiers(ResourceManager aResourceManager)
For an aggregate AnalysisEngine only, retrieves a collection of ResourceSpecifiers
that indicate which delegate AnalysisEngines comprise the aggregate. |
java.util.Map<java.lang.String,MetaDataObject> |
getDelegateAnalysisEngineSpecifiersWithImports()
Retrieves a Map whose keys are string identifiers and whose values are the either Import or ResourceSpecifier objects. |
FlowControllerDeclaration |
getFlowControllerDeclaration()
For an aggregate AnalysisEngine only, gets the declaration of which FlowController should be used by the AnalysisEngine. |
java.lang.String |
getFrameworkImplementation()
Gets the name of the AE framework implementation within which the Resource executes. |
SofaMapping[] |
getSofaMappings()
Reserved for future use. |
protected XmlizationInfo |
getXmlizationInfo()
To be implemented by subclasses to return information describing how to represent this object in XML. |
protected static XmlizationInfo |
getXmlizationInfoForClass()
Static method to get XmlizationInfo, used by subclasses to set up their own XmlizationInfo. |
boolean |
isPrimitive()
Retrieves whether the AnalysisEngine is primitive (consisting of one annotator), as opposed to aggregate (containing multiple delegate AnalysisEngines). |
java.util.List<NameClassPair> |
listAttributes()
Overridden to add Delegate AE Specifiers to the result list. |
protected void |
readPropertyValueFromXMLElement(PropertyXmlInfo aPropXmlInfo,
org.w3c.dom.Element aElement,
XMLParser aParser,
XMLParser.ParsingOptions aOptions)
Overridden to handle XML import of the DelegateAnalysisEngineSpecifiers attribute. |
protected void |
resolveDelegateAnalysisEngineImports(java.util.Collection<java.lang.String> aEnclosingAggregateAeUrls,
ResourceManager aResourceManager,
boolean aRecursive)
Resolves imports of delegate Analysis Engines. |
protected void |
resolveDelegateAnalysisEngineImports(ResourceManager aResourceManager,
boolean aRecursive)
Resolves imports of delegate Analysis Engines. |
void |
resolveImports(java.util.Collection<java.lang.String> aAlreadyImportedDelegateAeUrls,
ResourceManager aResourceManager)
Resolves all import declarations in this AnalysisEngineDescription. |
void |
resolveImports(ResourceManager aResourceManager)
Resolves all import declarations in this AnalysisEngineDescription. |
void |
setAnnotatorImplementationName(java.lang.String aImplementationName)
For a primitive AnalysisEngine only, sets the name of the annotator implementation. |
void |
setFlowControllerDeclaration(FlowControllerDeclaration aFlowControllerDeclaration)
For an aggregate AnalysisEngine only, sets the declaration of which FlowController should be used by the AnalysisEngine. |
void |
setFrameworkImplementation(java.lang.String aFrameworkImplementation)
Sets the name of the AE framework implementation within which the ResourceCreationSpecifier executes. |
void |
setPrimitive(boolean aPrimitive)
Sets whether the AnalysisEngine is primitive (consisting of one annotator), as opposed to aggregate (containing multiple delegate AnalysisEngines). |
void |
setSofaMappings(SofaMapping[] aSofaMappings)
Reserved for future use. |
void |
toXML(org.xml.sax.ContentHandler aContentHandler,
boolean aWriteDefaultNamespaceAttribute,
boolean aPreserveDelegateAnalysisEngineImports)
Writes this object's XML representation by making calls on a SAX ContentHandler. |
void |
toXML(java.io.OutputStream aOutputStream,
boolean aPreserveDelegateAnalysisEngineImports)
Writes this object's XML representation as a string in UTF-8 encoding. |
void |
toXML(java.io.Writer aWriter,
boolean aPreserveDelegateAnalysisEngineImports)
Writes this object's XML representation as a string. |
void |
validate(ResourceManager aResourceManager)
Determines if the AnalysisEngineDescription is valid. |
protected void |
validateSofaMappings()
Validate SofA mappings and inputs/outputs for an aggregate AE. |
protected void |
writePropertyAsElement(PropertyXmlInfo aPropInfo,
java.lang.String aNamespace,
org.xml.sax.ContentHandler aContentHandler)
Overridden to handle XML export of the DelegateAnalysisEngineSpecifiers attribute. |
| Methods inherited from class org.apache.uima.resource.impl.ResourceCreationSpecifier_impl |
|---|
checkForDuplicateParameterNames, getExternalResourceDependencies, getExternalResourceDependency, getImplementationName, getMetaData, getResourceManagerConfiguration, setExternalResourceDependencies, setImplementationName, setMetaData, setResourceManagerConfiguration, validate, validateConfigurationParameters |
| Methods inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl |
|---|
buildFromXMLElement, clone, equals, getAttributeClass, getAttributeValue, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSourceUrl, getSourceUrlString, getWrapperClass, getXMLAttributes, hashCode, isModifiable, readArrayPropertyValueFromXMLElement, readMapPropertyFromXml, readUnknownPropertyValueFromXMLElement, setAttributeValue, setSourceUrl, setSourceUrlIfNull, toString, toXML, toXML, toXML, toXML, writeArrayPropertyAsElement, writeMapPropertyToXml |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.uima.resource.ResourceCreationSpecifier |
|---|
getExternalResourceDependencies, getExternalResourceDependency, getImplementationName, getMetaData, getResourceManagerConfiguration, setExternalResourceDependencies, setImplementationName, setMetaData, setResourceManagerConfiguration, validate |
| Methods inherited from interface org.apache.uima.resource.metadata.MetaDataObject |
|---|
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, setAttributeValue, setSourceUrl |
| Methods inherited from interface org.apache.uima.util.XMLizable |
|---|
buildFromXMLElement, toXML, toXML, toXML, toXML |
| Field Detail |
|---|
protected java.lang.String PROP_DELEGATE_ANALYSIS_ENGINE_SPECIFIERS
protected java.lang.String PROP_DELEGATE_ANALYSIS_ENGINE_SPECIFIERS_WITH_IMPORTS
protected java.lang.String ELEM_DELEGATE_ANALYSIS_ENGINE_SPECIFIERS
| Constructor Detail |
|---|
public AnalysisEngineDescription_impl()
| Method Detail |
|---|
public java.lang.String getFrameworkImplementation()
ResourceCreationSpecifierConstants.JAVA_FRAMEWORK_NAME..
getFrameworkImplementation in interface AnalysisEngineDescriptiongetFrameworkImplementation in interface ResourceCreationSpecifiergetFrameworkImplementation in class ResourceCreationSpecifier_implAnalysisEngineDescription.getFrameworkImplementation()public void setFrameworkImplementation(java.lang.String aFrameworkImplementation)
ResourceCreationSpecifierResourceCreationSpecifier executes. The
framework name for this implementation is given by Constants.JAVA_FRAMEWORK_NAME..
setFrameworkImplementation in interface AnalysisEngineDescriptionsetFrameworkImplementation in interface ResourceCreationSpecifiersetFrameworkImplementation in class ResourceCreationSpecifier_implaFrameworkImplementation - the framework implementation nameAnalysisEngineDescription.setFrameworkImplementation(java.lang.String)public boolean isPrimitive()
AnalysisEngineDescription
Some of the methods on this class apply only to one type of AnalysisEngine:
AnalysisEngineDescription.getAnnotatorImplementationName() - primitive AnalysisEngine only
AnalysisEngineDescription.getDelegateAnalysisEngineSpecifiers() - aggregate AnalysisEngine only
AnalysisEngineDescription.getFlowControllerDeclaration() - aggregate AnalysisEngine only
isPrimitive in interface AnalysisEngineDescriptionAnalysisEngineDescription.isPrimitive()public void setPrimitive(boolean aPrimitive)
AnalysisEngineDescription
setPrimitive in interface AnalysisEngineDescriptionaPrimitive - true if and only if the AnalysisEngine is primitiveAnalysisEngineDescription.setPrimitive(boolean)public java.lang.String getAnnotatorImplementationName()
AnalysisEngineDescription
getAnnotatorImplementationName in interface AnalysisEngineDescriptionnull.AnalysisEngineDescription.getAnnotatorImplementationName()public void setAnnotatorImplementationName(java.lang.String aImplementationName)
AnalysisEngineDescription
setAnnotatorImplementationName in interface AnalysisEngineDescriptionaImplementationName - the implementation name of the annotator.AnalysisEngineDescription.setAnnotatorImplementationName(String)
public java.util.Map<java.lang.String,ResourceSpecifier> getDelegateAnalysisEngineSpecifiers()
throws InvalidXMLException
AnalysisEngineDescriptionResourceSpecifiers
that indicate which delegate AnalysisEngines comprise the aggregate. Each
ResourceSpecifier can either:
This method returns an unmodifiable Map whose keys are string identifiers and whose values are
the ResourceSpecifier objects. The string identifiers in this Map are to refer
to the delegate AnalysisEngines from elsewhere in this AnalysisEngineDescription.
(For example in the FlowConstraints
description.)
Note that the Map returned by this method will never contain
Import objects -- they will always be resolved first.
If you want to get access to the original Import objects, use
AnalysisEngineDescription.getDelegateAnalysisEngineSpecifiersWithImports(). Also use that method if you want to
be able to make changes to the Map.
getDelegateAnalysisEngineSpecifiers in interface AnalysisEngineDescriptionString keys and ResourceSpecifier
values.
InvalidXMLException - if import resolution failedAnalysisEngineDescription.getDelegateAnalysisEngineSpecifiers()
public java.util.Map<java.lang.String,ResourceSpecifier> getDelegateAnalysisEngineSpecifiers(ResourceManager aResourceManager)
throws InvalidXMLException
AnalysisEngineDescriptionResourceSpecifiers
that indicate which delegate AnalysisEngines comprise the aggregate. Each
ResourceSpecifier can either:
This method returns an unmodifiable Map whose keys are string identifiers and whose values are
the ResourceSpecifier objects. The string identifiers in this Map are to refer
to the delegate AnalysisEngines from elsewhere in this AnalysisEngineDescription.
(For example in the FlowConstraints
description.)
Note that the Map returned by this method will never contain
Import objects -- they will always be resolved first.
If you want to get access to the original Import objects, use
AnalysisEngineDescription.getDelegateAnalysisEngineSpecifiersWithImports(). Also use that method if you want to
be able to make changes to the Map.
getDelegateAnalysisEngineSpecifiers in interface AnalysisEngineDescriptionaResourceManager - the ResourceManager to use to get the datapath needed to resolve imports
String keys and ResourceSpecifier
values.
InvalidXMLException - if import resolution failedAnalysisEngineDescription.getDelegateAnalysisEngineSpecifiers()public java.util.Map<java.lang.String,MetaDataObject> getDelegateAnalysisEngineSpecifiersWithImports()
AnalysisEngineDescriptionImport or ResourceSpecifier objects. These
indicate the delegate AnalysisEngines that comprise the aggregate.
This is a direct representation of what is in the XML syntax for the descriptor. That is, if
the XML had an <import> element, the Map will contain an Import object. If
you do not want to deal with imports, use the AnalysisEngineDescription.getDelegateAnalysisEngineSpecifiers()
method instead.
getDelegateAnalysisEngineSpecifiersWithImports in interface AnalysisEngineDescriptionString keys and ResourceSpecifier or
Import objects as values. This Map may be
modified to add or remove imports or specifiers.AnalysisEngineDescription.getDelegateAnalysisEngineSpecifiersWithImports()public FlowControllerDeclaration getFlowControllerDeclaration()
AnalysisEngineDescription
getFlowControllerDeclaration in interface AnalysisEngineDescriptionpublic void setFlowControllerDeclaration(FlowControllerDeclaration aFlowControllerDeclaration)
AnalysisEngineDescription
setFlowControllerDeclaration in interface AnalysisEngineDescriptionaFlowControllerDeclaration - an object containing either an import of a ResourceSpecifier or a ResourceSpecifier
itself. This specifier will be used to create the FlowController.
public java.util.Map<java.lang.String,ResourceSpecifier> getAllComponentSpecifiers(ResourceManager aResourceManager)
throws InvalidXMLException
AnalysisEngineDescription
This method returns an unmodifiable Map whose keys are string identifiers and whose values are
the ResourceSpecifier objects. The string identifiers in this Map are to refer
to the components from elsewhere in this aggregate descriptor, for example in configuration
parameter overrides and resource bindings.
Note that the Map returned by this method will never contain
Import objects -- they will always be resolved first.
If you want to get access to the original Import objects, use
AnalysisEngineDescription.getDelegateAnalysisEngineSpecifiersWithImports() and AnalysisEngineDescription.getFlowControllerDeclaration().
Also use those methods if you want to make changes to be able to make changes to the Map.
getAllComponentSpecifiers in interface AnalysisEngineDescriptionaResourceManager - the ResourceManager from which to get the datapath needed to resolve imports. Pass
null to use the default ResourceManager.
String keys and ResourceSpecifier
values.
InvalidXMLException - if import resolution failedpublic AnalysisEngineMetaData getAnalysisEngineMetaData()
AnalysisEngineDescription
getAnalysisEngineMetaData in interface AnalysisEngineDescriptionAnalysisEngineMetaData object containing the AnalysisEngine's
metadata. This object can be modified.AnalysisEngineDescription.getAnalysisEngineMetaData()public SofaMapping[] getSofaMappings()
AnalysisEngineDescription
getSofaMappings in interface AnalysisEngineDescriptionpublic void setSofaMappings(SofaMapping[] aSofaMappings)
AnalysisEngineDescription
setSofaMappings in interface AnalysisEngineDescription
public void doFullValidation()
throws ResourceInitializationException
ResourceCreationSpecifierResourceCreationSpecifier.
This essentially performs all operations necessary to
instantiate a Resource except that it does not actually instantiate the implementation class.
If appropriate, this method will also attempt to create a CAS based on the descriptor, in order
to do full type system verification. If any operations fail, an exception will be thrown.
doFullValidation in interface AnalysisEngineDescriptiondoFullValidation in interface ResourceCreationSpecifierdoFullValidation in class ResourceCreationSpecifier_implResourceInitializationException - if validation failed
public void doFullValidation(ResourceManager aResourceManager)
throws ResourceInitializationException
ResourceCreationSpecifierResourceCreationSpecifier.
This essentially performs all operations necessary to
instantiate a Resource except that it does not actually instantiate the implementation class.
If appropriate, this method will also attempt to create a CAS based on the descriptor, in order
to do full type system verification. If any operations fail, an exception will be thrown.
doFullValidation in interface AnalysisEngineDescriptiondoFullValidation in interface ResourceCreationSpecifierdoFullValidation in class ResourceCreationSpecifier_implaResourceManager - a ResourceManager instance to use to load annotator classes, external resource
classes, and resolve imports by name.
ResourceInitializationException - if validation failed
public void validate(ResourceManager aResourceManager)
throws ResourceInitializationException,
ResourceConfigurationException
validate in interface ResourceCreationSpecifiervalidate in class ResourceCreationSpecifier_implaResourceManager - a ResourceManager instance to use to resolve imports by name.
ResourceInitializationException - if aDesc is invalid
ResourceConfigurationException - if the configuration parameter settings in aDesc are invalid
protected void checkForInvalidParameterOverrides(ConfigurationParameter[] aParams,
java.lang.String aGroupName,
ResourceManager aResourceManager)
throws ResourceInitializationException
checkForInvalidParameterOverrides in class ResourceCreationSpecifier_implaParams - an array of ConfigurationParametersaGroupName - name of groups in which these parameters are contained. Null if no groupaResourceManager - a ResourceManager instance to use to resolve imports by name.
ResourceInitializationException - if there is an invalid parameter override declaration
public ResourceSpecifier getComponentSpecifier(java.lang.String key)
throws ResourceInitializationException
getComponentSpecifier in interface AnalysisEngineDescriptionkey - the key of the component specifier to get
ResourceInitializationException - if there's a problem resolving imports
protected void validateSofaMappings()
throws ResourceInitializationException
aDesc -
ResourceInitializationException
protected boolean capabilitiesContainSofa(java.lang.String aSofaName,
boolean aOutput)
public java.util.List<NameClassPair> listAttributes()
listAttributes in interface MetaDataObjectlistAttributes in class MetaDataObject_implNameClassPair objects, 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.Integer instead of
int).org.apache.uima.resource.MetaDataObject#listAttributes()
public void toXML(java.io.OutputStream aOutputStream,
boolean aPreserveDelegateAnalysisEngineImports)
throws org.xml.sax.SAXException,
java.io.IOException
AnalysisEngineDescription
toXML in interface AnalysisEngineDescriptionaOutputStream - an OutputStream to which the XML string will be written, in UTF-8 encoding.aPreserveDelegateAnalysisEngineImports - if true, XML serialization will always preserve <import> elements used to import
delegate analysis engine specifiers into an aggregate. If false, the default import
serialization behavior applies, which is to write <import> elements only in the
case where they have not previously been resolved.
java.io.IOException - if an I/O failure occurs
org.xml.sax.SAXException
public void toXML(java.io.Writer aWriter,
boolean aPreserveDelegateAnalysisEngineImports)
throws org.xml.sax.SAXException,
java.io.IOException
AnalysisEngineDescriptionXMLizable.toXML(OutputStream) instead, as it
ensures that output is written in UTF-8 encoding, which is the default encoding that should be
used for XML files.
toXML in interface AnalysisEngineDescriptionaWriter - a Writer to which the XML string will be writtenaPreserveDelegateAnalysisEngineImports - if true, XML serialization will always preserve <import> elements used to import
delegate analysis engine specifiers into an aggregate. If false, the default import
serialization behavior applies, which is to write <import> elements only in the
case where they have not previously been resolved.
java.io.IOException - if an I/O failure occurs
org.xml.sax.SAXException
public void toXML(org.xml.sax.ContentHandler aContentHandler,
boolean aWriteDefaultNamespaceAttribute,
boolean aPreserveDelegateAnalysisEngineImports)
throws org.xml.sax.SAXException
AnalysisEngineDescriptionContentHandler.
toXML in interface AnalysisEngineDescriptionaContentHandler - the content handler to which this object will write events that describe its XML
representation.aWriteDefaultNamespaceAttribute - whether the namespace of this element should be written as the default namespace. This
should be done only for the root element, and it defaults to false.aPreserveDelegateAnalysisEngineImports - if true, XML serialization will always preserve <import> elements used to import
delegate analysis engine specifiers into an aggregate. If false, the default import
serialization behavior applies, which is to write <import> elements only in the
case where they have not previously been resolved.
org.xml.sax.SAXException
public void resolveImports(ResourceManager aResourceManager)
throws InvalidXMLException
AnalysisEngineDescriptionUIMAFramework.produceAnalysisEngine(ResourceSpecifier) is called.
resolveImports in interface AnalysisEngineDescriptionaResourceManager - the Resource Manager used to locate imports by name. For example, the path in which to
locate these imported descriptors can be set via the
ResourceManager.setDataPath(String) method.
InvalidXMLException - if an import target does not exist or is invalid
public void resolveImports(java.util.Collection<java.lang.String> aAlreadyImportedDelegateAeUrls,
ResourceManager aResourceManager)
throws InvalidXMLException
AnalysisEngineDescriptionUIMAFramework.produceAnalysisEngine(ResourceSpecifier) is called.
This version is used internally to resolve nested imports.
resolveImports in interface AnalysisEngineDescriptionaAlreadyImportedDelegateAeUrls - URLs of already imported AE descriptors, so we don't import them again.aResourceManager - the Resource Manager used to locate imports by name. For example, the path in which to
locate these imported descriptors can be set via the
ResourceManager.setDataPath(String) method.
InvalidXMLException - if an import target does not exist or is invalid
protected void resolveDelegateAnalysisEngineImports(ResourceManager aResourceManager,
boolean aRecursive)
throws InvalidXMLException
aRecursive - If true, this method will call resolveImports(Collection, ResourceManager)
on each delegate. If a cirular import is found, an exception will be thrown.
InvalidXMLException
protected void resolveDelegateAnalysisEngineImports(java.util.Collection<java.lang.String> aEnclosingAggregateAeUrls,
ResourceManager aResourceManager,
boolean aRecursive)
throws InvalidXMLException
aEnclosingAggregateAeUrls - URLs of enclosing aggregate AEs. Used to detect circular imports.aRecursive - If true, this method will call resolveImports(Collection, ResourceManager)
on each delegate. If a circular import is found, an exception will be thrown.
InvalidXMLException
protected void writePropertyAsElement(PropertyXmlInfo aPropInfo,
java.lang.String aNamespace,
org.xml.sax.ContentHandler aContentHandler)
throws org.xml.sax.SAXException
Map, which is not handled by the default XML
export logic.
writePropertyAsElement in class MetaDataObject_implaPropInfo - information on how to represent the property in XMLaNamespace - XML namespace URI for this objectaContentHandler - content handler to which this object will send events that describe its XML
representation
org.xml.sax.SAXExceptionorg.apache.uima.MetaDataObject_impl#writePropertyAsElement(PropertyXmlInfo,String,ContentHandler)
protected void readPropertyValueFromXMLElement(PropertyXmlInfo aPropXmlInfo,
org.w3c.dom.Element aElement,
XMLParser aParser,
XMLParser.ParsingOptions aOptions)
throws InvalidXMLException
Map, which is not handled by the default XML
import logic.
readPropertyValueFromXMLElement in class MetaDataObject_implaPropXmlInfo - information about the property to readaElement - DOM element to read fromaParser - parser to use to construct complex valuesaOptions - option settings
InvalidXMLExceptionorg.apache.uima.resource.impl.MetaDataObject_impl#readPropertyValueFromXMLElement(org.apache.uima.resource.impl.PropertyXmlInfo,
org.w3c.dom.Element, org.apache.uima.util.XMLParser)
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 settings
InvalidXMLException - if the input XML element does not specify a valid objectprotected XmlizationInfo getXmlizationInfo()
MetaDataObject_impl
getXmlizationInfo in class ResourceCreationSpecifier_implprotected static XmlizationInfo getXmlizationInfoForClass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||