Functions | |
virtual AnnotationFS | uima::CAS::createAnnotation (Type const &type, size_t uiBeginPos, size_t uiEndPos) |
convenience function for creating an annotation. | |
bool | uima::CAS::moveToBeginPosition (ANIterator &itOfType, AnnotationFS const &crFromAnn) |
CAS Utility functions for Annotation Iterators sets the index iterator to the begin position of crFromAnn . |
virtual AnnotationFS uima::CAS::createAnnotation | ( | Type const & | type, | |
size_t | uiBeginPos, | |||
size_t | uiEndPos | |||
) | [virtual, inherited] |
convenience function for creating an annotation.
type
must be a subtype of type Annotation. Note that this will not commit the new feature structure to the appropriate indexes. To do this CAS::commitFS() has to be called.
CASException | if specified type is not an annotation, or View is base CAS. |
bool uima::CAS::moveToBeginPosition | ( | ANIterator & | itOfType, | |
AnnotationFS const & | crFromAnn | |||
) | [inherited] |
CAS Utility functions for Annotation Iterators sets the index iterator to the begin position of crFromAnn
.
itOfType | The iterator to move | |
crFromAnn | The annotation defining the begin position |
beginPositioncrFromAnn
is also a valid begin position of the Annotation the iterator points to and the movement was successful, false otherwise. Note that both arguments, i.e. the index iterator and the FeatureStructure must be annotations.