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
ConstructorsConstructorDescriptionCasDefinition(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 aProcessingResourceMetaDataobject that contains the type system, indexes, and type priorities definitions for the CAS.voidsetFsIndexDescriptions(FsIndexDescription[] fsIndexDescriptions) voidsetResourceManager(ResourceManager resourceManager) voidsetTypePriorities(TypePriorities typePriorities) voidsetTypeSystemDescription(TypeSystemDescription typeSystemDescription) voidsetTypeSystemImpl(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 aProcessingResourceMetaDataobject 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
-