Package org.apache.uima.resource
Class CasDefinition
- java.lang.Object
-
- org.apache.uima.resource.CasDefinition
-
public class CasDefinition extends java.lang.Object
Encapsulates information that defines how to create a CAS.
-
-
Field Summary
Fields Modifier and Type Field Description private FsIndexDescription[]
fsIndexDescriptions
private ResourceManager
resourceManager
private TypePriorities
typePriorities
private TypeSystemDescription
typeSystemDescription
private TypeSystemImpl
typeSystemImpl
-
Constructor Summary
Constructors Constructor Description CasDefinition(java.util.Collection<? extends ProcessingResourceMetaData> aMetaDataToMerge, ResourceManager aResourceManager)
CasDefinition(TypeSystemDescription aTypeSystem, TypePriorities aTypePriorities, FsIndexDescription[] aFsIndexes, ResourceManager aResourceManager, java.util.Properties aPerformanceTuningSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CasManager
getCasManager()
Gets the CasManager associated with this CAS Definition.FsIndexDescription[]
getFsIndexDescriptions()
ProcessingResourceMetaData
getProcessingResourceMetaData()
Constructs and returns aProcessingResourceMetaData
object that contains the type system, indexes, and type priorities definitions for the CAS.ResourceManager
getResourceManager()
TypePriorities
getTypePriorities()
TypeSystemDescription
getTypeSystemDescription()
TypeSystemImpl
getTypeSystemImpl()
void
setFsIndexDescriptions(FsIndexDescription[] fsIndexDescriptions)
void
setResourceManager(ResourceManager resourceManager)
void
setTypePriorities(TypePriorities typePriorities)
void
setTypeSystemDescription(TypeSystemDescription typeSystemDescription)
void
setTypeSystemImpl(TypeSystemImpl typeSystemImpl)
-
-
-
Field Detail
-
typeSystemDescription
private TypeSystemDescription typeSystemDescription
-
typeSystemImpl
private TypeSystemImpl typeSystemImpl
-
typePriorities
private TypePriorities typePriorities
-
fsIndexDescriptions
private FsIndexDescription[] fsIndexDescriptions
-
resourceManager
private ResourceManager resourceManager
-
-
Constructor Detail
-
CasDefinition
public CasDefinition(TypeSystemDescription aTypeSystem, TypePriorities aTypePriorities, FsIndexDescription[] aFsIndexes, ResourceManager aResourceManager, java.util.Properties aPerformanceTuningSettings)
-
CasDefinition
public CasDefinition(java.util.Collection<? extends ProcessingResourceMetaData> aMetaDataToMerge, ResourceManager aResourceManager) throws ResourceInitializationException
- Throws:
ResourceInitializationException
-
-
Method Detail
-
getFsIndexDescriptions
public FsIndexDescription[] getFsIndexDescriptions()
- Returns:
- Returns the fsIndexDescriptions.
-
setFsIndexDescriptions
public void setFsIndexDescriptions(FsIndexDescription[] fsIndexDescriptions)
- Parameters:
fsIndexDescriptions
- The fsIndexDescriptions to set.
-
getResourceManager
public ResourceManager getResourceManager()
- Returns:
- Returns the resourceManager.
-
setResourceManager
public void setResourceManager(ResourceManager resourceManager)
- Parameters:
resourceManager
- The resourceManager to set.
-
getTypePriorities
public TypePriorities getTypePriorities()
- Returns:
- Returns the typePriorities.
-
setTypePriorities
public void setTypePriorities(TypePriorities typePriorities)
- Parameters:
typePriorities
- The typePriorities to set.
-
getTypeSystemDescription
public TypeSystemDescription getTypeSystemDescription()
- Returns:
- Returns the typeSystemDescription.
-
setTypeSystemDescription
public void setTypeSystemDescription(TypeSystemDescription typeSystemDescription)
- Parameters:
typeSystemDescription
- The typeSystemDescription to set.
-
getCasManager
public CasManager getCasManager()
Gets the CasManager associated with this CAS Definition.- Returns:
- this CAS Definition's CasManager
-
getProcessingResourceMetaData
public ProcessingResourceMetaData 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
public TypeSystemImpl getTypeSystemImpl()
- Returns:
- the typeSystemImpl
-
setTypeSystemImpl
public void setTypeSystemImpl(TypeSystemImpl typeSystemImpl)
- Parameters:
typeSystemImpl
- the typeSystemImpl to set
-
-