|
Public Member Functions |
| virtual | ~CAS () |
| int | getSofaNum () |
| | Returns the Sofa number.
|
| bool | isBackwardCompatibleCas () |
| | True if a CAS view.
|
| CAS * | getBaseCas () |
| | If a View, returns the base CAS, else returns itself.
|
| bool | isView () |
| | Returns true if a CAS view.
|
| TyErrorId | reset (void) |
| | Resets the CAS.
|
| FSFilterBuilder const & | getFSFilterBuilder () const |
| | get the FSFilterBuilder associated with this CAS.
|
| TypeSystem const & | getTypeSystem (void) const |
| | Get the TypeSystem (const version).
|
| uima::lowlevel::FSHeap * | getHeap () |
| | Get the FSHeap pointer.
|
| FeatureStructure | createFS (Type const &crType) |
| | create an FS of type crType
|
| ArrayFS | createArrayFS (size_t uiSize) |
| | create a feature structure of type FS Array.
|
| FloatArrayFS | createFloatArrayFS (size_t uiSize) |
| | create a feature structure of type FS Array.
|
| IntArrayFS | createIntArrayFS (size_t uiSize) |
| | create a feature structure of type FS Array.
|
| StringArrayFS | createStringArrayFS (size_t uiSize) |
| | create a feature structure of type FS Array.
|
| ListFS | createListFS () |
| | create a feature structure of type empty FS list (list length is zero) Each element in the list is a FeatureStructure.
|
| FloatListFS | createFloatListFS () |
| | create a feature structure of type empty float list (list length is zero).
|
| IntListFS | createIntListFS () |
| | create a feature structure of type empty int list (list length is zero).
|
| StringListFS | createStringListFS () |
| | create a feature structure of type empty string list (list length is zero).
|
| BooleanArrayFS | createBooleanArrayFS (size_t uiSize) |
| | create a feature structure of type FS Array.
|
| ByteArrayFS | createByteArrayFS (size_t uiSize) |
| | create a feature structure of type FS Array.
|
| ShortArrayFS | createShortArrayFS (size_t uiSize) |
| | create a feature structure of type FS Array.
|
| LongArrayFS | createLongArrayFS (size_t uiSize) |
| | create a feature structure of type FS Array.
|
| DoubleArrayFS | createDoubleArrayFS (size_t uiSize) |
| | create a feature structure of type FS Array.
|
| FSIndexRepository & | getIndexRepository (void) |
| | Return the index repository for index use - Exceptions:
-
| CASException | if View is the base CAS. |
|
| FSIndexRepository const & | getIndexRepository (void) const |
| | Return the index repository for index use (const-version).
|
| uima::lowlevel::IndexRepository & | getLowlevelIndexRepository (void) const |
| | Get the lowlevel IndexRepository.
|
| FSIndexRepository & | getBaseIndexRepository (void) |
| | Return the base index repository: for internal use only.
|
| SofaFS | createSofa (const SofaID &sofaName, const char *mimeType) |
| | Create a SofaFS.
|
| SofaFS | getSofa (const SofaID &sofaName) |
| | Retrieve the SofaFS as identified by the SofaID.
|
| SofaFS | getSofa () |
| | Get the Sofa feature structure associated with this CAS view.
|
| CAS * | getView (const icu::UnicodeString &localViewName) |
| | Get the view for a Sofa (subject of analysis).
|
| CAS * | getView (SofaFS aSofa) |
| | Get the view for a Sofa (subject of analysis).
|
| CAS * | createView (icu::UnicodeString const &localViewName) |
| | Create a view and its underlying Sofa (subject of analysis).
|
| UnicodeStringRef | getViewName () |
| | Get the view name.
|
| void | setDocumentText (UnicodeStringRef const text) |
| | Set the document text.
|
| void | setDocumentText (UChar const *cpBuffer, size_t uiLength, bool bCopyToCAS=false) |
| | Set the document text, old style.
|
| virtual void | setSofaDataString (UnicodeStringRef const text, icu::UnicodeString const &mimetype) |
| | Set the document text.
|
| virtual UnicodeStringRef | getDocumentText () const |
| | Get the document text.
|
| virtual DocumentFS const | getDocumentAnnotation () const |
| | Returns the FeaturesStructure of type document annotation representing the current document.
|
| virtual DocumentFS | getDocumentAnnotation () |
| virtual void | setSofaDataArray (FeatureStructure array, icu::UnicodeString const &mime) |
| | Set the Sofa data as an ArrayFS.
|
| virtual FeatureStructure | getSofaDataArray () |
| | Get the Sofa data array.
|
| virtual void | setSofaDataURI (icu::UnicodeString const &uri, icu::UnicodeString const &mime) |
| | Set the Sofa data as a URI.
|
| virtual UnicodeStringRef | getSofaDataURI () |
| | Get the Sofa data array.
|
| virtual SofaDataStream * | getSofaDataStream () |
| | Get the Sofa data as a byte stream.
|
| void | setCurrentComponentInfo (AnnotatorContext *info) |
| | Informs the CAS of relevant information about the component that is currently procesing it.
|
| FSIterator | getSofaIterator () |
| | Get an iterator over all SofaFS.
|
| FSIterator | iterator () |
| | create an iterator over all the feature structures in this CAS.
|
| virtual AnnotationFS | createAnnotation (Type const &type, size_t uiBeginPos, size_t uiEndPos) |
| | convenience function for creating an annotation.
|
| bool | moveToBeginPosition (ANIterator &itOfType, AnnotationFS const &crFromAnn) |
| | CAS Utility functions for Annotation Iterators sets the index iterator to the begin position of crFromAnn.
|
|
| virtual ANIndex | getAnnotationIndex () |
| | get the index over all annotations.
|
| virtual ANIndex | getAnnotationIndex (Type const &crType) |
| | get the index over annotations of type crType.
|
| virtual ANIndex const | getAnnotationIndex (Type const &crType) const |
|
This should only be needed to get access to low level indexes.
|
| icu::UnicodeString | getAnnotationIndexID () const |
Static Public Attributes |
| icu::UnicodeString const | ustrCREATOR_ID_CAS |
| | The creator id constant for types/features created by the CAS (e.g.
|
|
| char const * | NAME_SPACE_UIMA_CAS |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_TOP |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_INTEGER |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_STRING |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_FLOAT |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_ARRAY_BASE |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_FS_ARRAY |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_FLOAT_ARRAY |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_INTEGER_ARRAY |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_STRING_ARRAY |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_LIST_BASE |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_FS_LIST |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_EMPTY_FS_LIST |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_NON_EMPTY_FS_LIST |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_FLOAT_LIST |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_NON_EMPTY_FLOAT_LIST |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_EMPTY_FLOAT_LIST |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_INTEGER_LIST |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_NON_EMPTY_INTEGER_LIST |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_EMPTY_INTEGER_LIST |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_STRING_LIST |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_NON_EMPTY_STRING_LIST |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_EMPTY_STRING_LIST |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_SOFA |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_LOCALSOFA |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_REMOTESOFA |
| | Use this instead of a string literal.
|
| char const * | NAME_DEFAULT_TEXT_SOFA |
| | Use this instead of a string literal.
|
| char const * | NAME_DEFAULT_SOFA |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_ANNOTATION_BASE |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_ANNOTATION |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_DOCUMENT_ANNOTATION |
| | Use this instead of a string literal.
|
| char const * | INDEXID_ANNOTATION |
| | Use this instead of a string literal.
|
| char const * | FEATURE_BASE_NAME_SOFA |
| | Use this instead of a string literal.
|
| char const * | FEATURE_FULL_NAME_SOFA |
| | Use this instead of a string literal.
|
| char const * | FEATURE_BASE_NAME_BEGIN |
| | Use this instead of a string literal.
|
| char const * | FEATURE_FULL_NAME_BEGIN |
| | Use this instead of a string literal.
|
| char const * | FEATURE_BASE_NAME_END |
| | Use this instead of a string literal.
|
| char const * | FEATURE_FULL_NAME_END |
| | Use this instead of a string literal.
|
| char const * | FEATURE_BASE_NAME_LANGUAGE |
| | Use this instead of a string literal.
|
| char const * | FEATURE_FULL_NAME_LANGUAGE |
| | Use this instead of a string literal.
|
| char const * | TYPE_NAME_BOOLEAN |
| char const * | TYPE_NAME_BYTE |
| char const * | TYPE_NAME_SHORT |
| char const * | TYPE_NAME_LONG |
| char const * | TYPE_NAME_DOUBLE |
| char const * | TYPE_NAME_BOOLEAN_ARRAY |
| char const * | TYPE_NAME_BYTE_ARRAY |
| char const * | TYPE_NAME_SHORT_ARRAY |
| char const * | TYPE_NAME_LONG_ARRAY |
| char const * | TYPE_NAME_DOUBLE_ARRAY |
|
| char const * | FEATURE_BASE_NAME_HEAD |
| | Use this instead of a string literal.
|
| char const * | FEATURE_BASE_NAME_TAIL |
| | Use this instead of a string literal.
|
| char const * | FEATURE_FULL_NAME_FS_LIST_HEAD |
| | Use this instead of a string literal.
|
| char const * | FEATURE_FULL_NAME_FS_LIST_TAIL |
| | Use this instead of a string literal.
|
| char const * | FEATURE_BASE_NAME_SOFANUM |
| | static char const * FEATURE_FULL_NAME_STRING_LIST_TAIL; Use this instead of a string literal
|
| char const * | FEATURE_BASE_NAME_SOFAID |
| | Use this instead of a string literal.
|
| char const * | FEATURE_BASE_NAME_SOFAMIME |
| | Use this instead of a string literal.
|
| char const * | FEATURE_BASE_NAME_SOFAURI |
| | Use this instead of a string literal.
|
| char const * | FEATURE_BASE_NAME_SOFASTRING |
| | Use this instead of a string literal.
|
| char const * | FEATURE_BASE_NAME_SOFAARRAY |
| | Use this instead of a string literal.
|
| char const * | FEATURE_FULL_NAME_SOFANUM |
| | Use this instead of a string literal.
|
| char const * | FEATURE_FULL_NAME_SOFAID |
| | Use this instead of a string literal.
|
| char const * | FEATURE_FULL_NAME_SOFAMIME |
| | Use this instead of a string literal.
|
| char const * | FEATURE_FULL_NAME_SOFAURI |
| | Use this instead of a string literal.
|
| char const * | FEATURE_FULL_NAME_SOFASTRING |
| | Use this instead of a string literal.
|
| char const * | FEATURE_FULL_NAME_SOFAARRAY |
| | Use this instead of a string literal.
|
Protected Member Functions |
| int | addString (icu::UnicodeString const &crString) |
| | Add a copy of crString to the string heap.
|
| int | addString (UChar const *cpString, size_t uiLen) |
| | Add a copy of cpString to the string heap.
|
| int | addString (const UnicodeStringRef &uls) |
| | Add a copy of uls to the string heap.
|
| UnicodeStringRef | getString (int strRef) |
| | Get a copy of crString from the string heap.
|
| | CAS (uima::internal::CASDefinition &, size_t uiFSHeapPageSize, size_t uiStringHeapPageSize, size_t uiStringRefHeapPageSize) |
| | Construct a CAS.
|
| | CAS (uima::internal::CASDefinition &, bool bOwnsCASDefinition, size_t uiFSHeapPageSize, size_t uiStringHeapPageSize, size_t uiStringRefHeapPageSize) |
| | Construct a CAS and specify ownership of CASDefinition object.
|
| | CAS (CAS *baseCas, SofaFS aSofa) |
| CAS * | getViewBySofaNum (int sofaNum) |
| | Only for internal use.
|
| void | registerInitialSofa () |
| | Only for internal use.
|
| bool | isInitialSofaCreated () |
| | Only for internal use.
|
| SofaFS | createInitialSofa (UnicodeStringRef const mimeType) |
| | Only for internal use.
|
Protected Attributes |
| int | iv_sofaNum |
| uima::internal::CASDefinition * | iv_casDefinition |
| bool | bOwnsCASDefinition |
| TypeSystem * | iv_typeSystem |
| uima::lowlevel::FSHeap * | iv_heap |
| uima::lowlevel::IndexRepository * | iv_indexRepository |
| uima::FSFilterBuilder * | iv_filterBuilder |
| int | iv_sofaCount |
| std::map< int, CAS * > | iv_sofa2tcasMap |
| std::vector< uima::lowlevel::IndexRepository * > | iv_sofa2indexMap |
| CAS * | iv_baseCas |
| CAS * | iv_initialView |
| bool | isbaseCas |
| bool | initialSofaCreated |
| bool | isDeletingViews |
| AnnotatorContext * | iv_componentInfo |
| uima::lowlevel::TyFSType | iv_utDocumentType |
| uima::lowlevel::TyFSFeature | iv_utDocumentLangAsIntFeat |
| uima::lowlevel::TyFSFeature | iv_utDocumentLangAsStrFeat |
| uima::lowlevel::TyFS | iv_tyDocumentAnnotation |
| UChar const * | iv_cpDocument |
| size_t | iv_uiDocumentLength |
| UChar * | iv_copyOfDocument |
Friends |
| void | uima::internal::fromHeapCellTempl (lowlevel::TyHeapCell, uima::CAS &, FeatureStructure &) |