Interface ProcessingResourceMetaData
- All Superinterfaces:
Cloneable
,MetaDataObject
,ResourceMetaData
,Serializable
,XMLizable
- All Known Subinterfaces:
AnalysisEngineMetaData
- All Known Implementing Classes:
AnalysisEngineMetaData_impl
,ProcessingResourceMetaData_impl
Resource
- that is, one
that reads or writes to the CAS
.
As with all MetaDataObject
s, a ProcessingResourceMetaData
may or may not be
modifiable. An application can find out by calling the MetaDataObject.isModifiable()
method.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves this Processing Resource'sCapabilities
.Retrieves the FS Index collection used by this Processing Resource.Retrieves the Feature Structure indexes by this Processing Resource.Gets this Processing Resource'sOperationalProperties
.Retrieves the Type Priorites for this Processing Resource.Retrieves the Type System used by this Processing Resource.boolean
Gets whether this AE is sofa-aware.void
Resolves any import declarations.void
resolveImports
(ResourceManager aResourceManager) Resolves any import declarations.void
setCapabilities
(Capability[] aCapabilities) Sets this Processing Resource'sCapabilities
.void
setFsIndexCollection
(FsIndexCollection aFsIndexCollection) Sets the Feature Structure Index collection used by this Processing Resource.void
setFsIndexes
(FsIndexDescription[] aFSIndexes) Sets the Feature Structure indexes by this Processing Resource.void
setOperationalProperties
(OperationalProperties aOperationalProperties) Sets this Processing Resource'sOperationalProperties
.void
setTypePriorities
(TypePriorities aTypePriorities) Retrieves the Type Priorites for this Processing Resource.void
setTypeSystem
(TypeSystemDescription aTypeSystem) Retrieves the Type System used by this Processing Resource.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.resource.metadata.ResourceMetaData
getConfigurationParameterDeclarations, getConfigurationParameterSettings, getCopyright, getDescription, getName, getUUID, getVendor, getVersion, setConfigurationParameterDeclarations, setConfigurationParameterSettings, setCopyright, setDescription, setName, setUUID, setVendor, setVersion, validateConfigurationParameterSettings
Methods inherited from interface org.apache.uima.util.XMLizable
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
-
Method Details
-
getTypeSystem
TypeSystemDescription getTypeSystem()Retrieves the Type System used by this Processing Resource. The Type System containsTypeDescription
s andFeatureDescription
s that are the inputs and/or outputs of this Resource. Some Processing Resources, such as aggregate analysis engines, may not contain a type system and returnnull
.- Returns:
- a description of the type system used by this Resource
-
setTypeSystem
Retrieves the Type System used by this Processing Resource. The Type System containsTypeDescription
s andFeatureDescription
s that are the inputs and/or outputs of this Resource.- Parameters:
aTypeSystem
- a description of the type system used by this Resource.- Throws:
UIMA_UnsupportedOperationException
- if thisMetaDataObject
is not modifiable.
-
getTypePriorities
TypePriorities getTypePriorities()Retrieves the Type Priorites for this Processing Resource. Type Priorities may be used to determine the sort order of CAS indexes - seegetFsIndexes()
.- Returns:
- the Type Priorities for Resource
-
setTypePriorities
Retrieves the Type Priorites for this Processing Resource. Type Priorities may be used to determine the sort order of CAS indexes - seegetFsIndexes()
.- Parameters:
aTypePriorities
- the Type Priorities for this Resource
-
getFsIndexCollection
FsIndexCollection getFsIndexCollection()Retrieves the FS Index collection used by this Processing Resource. FS Indexes are used to iterate over annotations in theCAS
.- Returns:
- a description of the Feature Structure indexes used by this Resource.
-
setFsIndexCollection
Sets the Feature Structure Index collection used by this Processing Resource. FS Indexes are used to iterate over annotations in theCAS
.- Parameters:
aFsIndexCollection
- a description of the Feature Structure indexes used by this Resource.- Throws:
UIMA_UnsupportedOperationException
- if thisMetaDataObject
is not modifiable.
-
getFsIndexes
FsIndexDescription[] getFsIndexes()Retrieves the Feature Structure indexes by this Processing Resource. These are used to iterate over annotations in theCAS
.NOTE: this method predates the
FsIndexCollection
object, which may define additional information (name, description, vendor, version) and import other FsIndexCollections, and provides direct access to theFsIndexDescription
objects. To access theFsIndexCollection
object, callgetFsIndexCollection()
.- Returns:
- a description of the Feature Structure indexes used by this Resource.
-
setFsIndexes
Sets the Feature Structure indexes by this Processing Resource. These are used to iterate over annotations in theCAS
.NOTE: this method predates the
FsIndexCollection
object, which may define additional information (name, description, vendor, version) and import other FsIndexCollections, and provides direct access to theFsIndexDescription
objects. To access theFsIndexCollection
object, callgetFsIndexCollection()
.- Parameters:
aFSIndexes
- a description of the Feature Structure indexes used by this Resource.- Throws:
UIMA_UnsupportedOperationException
- if thisMetaDataObject
is not modifiable.
-
getCapabilities
Capability[] getCapabilities()Retrieves this Processing Resource'sCapabilities
. Each capability consists of a set of features or types that this Resource inputs and outputs, along with the preconditions (e.g. language or mime type) on the input Entity.- Returns:
- an array of
Capabilities
.
-
setCapabilities
Sets this Processing Resource'sCapabilities
. Each capability consists of a set of features or types that this Resource inputs and outputs, along with the preconditions (e.g. language or mime type) on the input Entity.- Parameters:
aCapabilities
- an array ofCapabilities
.- Throws:
UIMA_UnsupportedOperationException
- if thisMetaDataObject
is not modifiable.
-
getOperationalProperties
OperationalProperties getOperationalProperties()Gets this Processing Resource'sOperationalProperties
. This includes information such as whether this component will modify the CAS, and whether multiple instances of this component can be run in parallel.- Returns:
- operational properties for this component
-
setOperationalProperties
Sets this Processing Resource'sOperationalProperties
. This includes information such as whether this component will modify the CAS, and whether multiple instances of this component can be run in parallel.- Parameters:
aOperationalProperties
- operational properties for this component- Throws:
UIMA_UnsupportedOperationException
- if thisMetaDataObject
is not modifiable.
-
resolveImports
Resolves any import declarations. This includes imports of type systems, type priorities, and FS index collections. The imported types, type priorities, and FS index collections are added directly onto their respective lists, and the import elements are deleted, so this results in a structure that is equivalent to the imported elements having been defined locally.- Specified by:
resolveImports
in interfaceResourceMetaData
- Throws:
InvalidXMLException
- if either the import target does not exist or is invalid
-
resolveImports
Resolves any import declarations. This includes imports of type systems, type priorities, and FS index collections. The imported types, type priorities, and FS index collections are added directly onto their respective lists, and the import elements are deleted, so this results in a structure that is equivalent to the imported elements having been defined locally.- Specified by:
resolveImports
in interfaceResourceMetaData
- Parameters:
aResourceManager
- the Resource Manager used to locate descriptors imported by name. For example, the path in which to locate these descriptors can be set via theResourceManager.setDataPath(String)
method.- Throws:
InvalidXMLException
- if either the import target does not exist or is invalid
-
isSofaAware
boolean isSofaAware()Gets whether this AE is sofa-aware. This is a derived property that cannot be set directly. An AE is sofa-aware if and only if it declares at least one input sofa or output sofa.- Returns:
- true if this component is sofa-aware, false if it is sofa-unaware.
-