Package org.apache.uima.resource
Class CasDefinition
java.lang.Object
org.apache.uima.resource.CasDefinition
Encapsulates information that defines how to create a CAS.
-
Constructor Summary
ConstructorDescriptionCasDefinition
(Collection<? extends ProcessingResourceMetaData> aMetaDataToMerge, ResourceManager aResourceManager) CasDefinition
(TypeSystemDescription aTypeSystem, TypePriorities aTypePriorities, FsIndexDescription[] aFsIndexes, ResourceManager aResourceManager, Properties aPerformanceTuningSettings) -
Method Summary
Modifier and TypeMethodDescriptionGets the CasManager associated with this CAS Definition.Constructs and returns aProcessingResourceMetaData
object that contains the type system, indexes, and type priorities definitions for the CAS.void
setFsIndexDescriptions
(FsIndexDescription[] fsIndexDescriptions) void
setResourceManager
(ResourceManager resourceManager) void
setTypePriorities
(TypePriorities typePriorities) void
setTypeSystemDescription
(TypeSystemDescription typeSystemDescription) void
setTypeSystemImpl
(TypeSystemImpl typeSystemImpl)
-
Constructor Details
-
CasDefinition
public CasDefinition(TypeSystemDescription aTypeSystem, TypePriorities aTypePriorities, FsIndexDescription[] aFsIndexes, ResourceManager aResourceManager, Properties aPerformanceTuningSettings) -
CasDefinition
public CasDefinition(Collection<? extends ProcessingResourceMetaData> aMetaDataToMerge, ResourceManager aResourceManager) throws ResourceInitializationException - Throws:
ResourceInitializationException
-
-
Method Details
-
getFsIndexDescriptions
- Returns:
- Returns the fsIndexDescriptions.
-
setFsIndexDescriptions
- Parameters:
fsIndexDescriptions
- The fsIndexDescriptions to set.
-
getResourceManager
- Returns:
- Returns the resourceManager.
-
setResourceManager
- Parameters:
resourceManager
- The resourceManager to set.
-
getTypePriorities
- Returns:
- Returns the typePriorities.
-
setTypePriorities
- Parameters:
typePriorities
- The typePriorities to set.
-
getTypeSystemDescription
- Returns:
- Returns the typeSystemDescription.
-
setTypeSystemDescription
- Parameters:
typeSystemDescription
- The typeSystemDescription to set.
-
getCasManager
Gets the CasManager associated with this CAS Definition.- Returns:
- this CAS Definition's CasManager
-
getProcessingResourceMetaData
Constructs and returns aProcessingResourceMetaData
object that contains the type system, indexes, and type priorities definitions for the CAS.- Returns:
- processing resource metadata object containing the relevant parts of the CAS definition
-
getTypeSystemImpl
- Returns:
- the typeSystemImpl
-
setTypeSystemImpl
- Parameters:
typeSystemImpl
- the typeSystemImpl to set
-