|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProcessingResourceMetaData
Metadata that describes a "Processing" 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 | |
---|---|
Capability[] |
getCapabilities()
Retrieves this Processing Resource's Capabilities . |
FsIndexCollection |
getFsIndexCollection()
Retrieves the FS Index collection used by this Processing Resource. |
FsIndexDescription[] |
getFsIndexes()
Retrieves the Feature Structure indexes by this Processing Resource. |
OperationalProperties |
getOperationalProperties()
Gets this Processing Resource's OperationalProperties . |
TypePriorities |
getTypePriorities()
Retrieves the Type Priorites for this Processing Resource. |
TypeSystemDescription |
getTypeSystem()
Retrieves the Type System used by this Processing Resource. |
boolean |
isSofaAware()
Gets whether this AE is sofa-aware. |
void |
resolveImports()
Resolves any import declarations. |
void |
resolveImports(ResourceManager aResourceManager)
Resolves any import declarations. |
void |
setCapabilities(Capability[] aCapabilities)
Sets this Processing Resource's Capabilities . |
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's OperationalProperties . |
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.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.resource.metadata.MetaDataObject |
---|
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl |
Methods inherited from interface org.apache.uima.util.XMLizable |
---|
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML |
Method Detail |
---|
TypeSystemDescription getTypeSystem()
TypeDescription
s and FeatureDescription
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 return null
.
void setTypeSystem(TypeSystemDescription aTypeSystem)
TypeDescription
s and FeatureDescription
s that are the inputs and/or outputs
of this Resource.
aTypeSystem
- a description of the type system used by this Resource.
UIMA_UnsupportedOperationException
- if this MetaDataObject
is not modifiable.TypePriorities getTypePriorities()
getFsIndexes()
.
void setTypePriorities(TypePriorities aTypePriorities)
getFsIndexes()
.
aTypePriorities
- the Type Priorities for this ResourceFsIndexCollection getFsIndexCollection()
CAS
.
void setFsIndexCollection(FsIndexCollection aFsIndexCollection)
CAS
.
aFsIndexCollection
- a description of the Feature Structure indexes used by this Resource.
UIMA_UnsupportedOperationException
- if this MetaDataObject
is not modifiable.FsIndexDescription[] getFsIndexes()
CAS
.
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 the FsIndexDescription
objects. To access the
FsIndexCollection
object, call getFsIndexCollection()
.
void setFsIndexes(FsIndexDescription[] aFSIndexes)
CAS
.
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 the FsIndexDescription
objects. To access the
FsIndexCollection
object, call getFsIndexCollection()
.
aFSIndexes
- a description of the Feature Structure indexes used by this Resource.
UIMA_UnsupportedOperationException
- if this MetaDataObject
is not modifiable.Capability[] getCapabilities()
Capabilities
. 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.
Capabilities
.void setCapabilities(Capability[] aCapabilities)
Capabilities
. 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.
aCapabilities
- an array of Capabilities
.
UIMA_UnsupportedOperationException
- if this MetaDataObject
is not modifiable.OperationalProperties getOperationalProperties()
OperationalProperties
. This includes information such
as whether this component will modify the CAS, and whether multiple instances of this component
can be run in parallel.
void setOperationalProperties(OperationalProperties aOperationalProperties)
OperationalProperties
. This includes information such
as whether this component will modify the CAS, and whether multiple instances of this component
can be run in parallel.
aOperationalProperties
- operational properties for this component
UIMA_UnsupportedOperationException
- if this MetaDataObject
is not modifiable.void resolveImports() throws InvalidXMLException
resolveImports
in interface ResourceMetaData
InvalidXMLException
- if either the import target does not exist or is invalidvoid resolveImports(ResourceManager aResourceManager) throws InvalidXMLException
resolveImports
in interface ResourceMetaData
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 the
ResourceManager.setDataPath(String)
method.
InvalidXMLException
- if either the import target does not exist or is invalidboolean isSofaAware()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |