Package org.apache.uima.cas.impl
Class AnnotationImpl
java.lang.Object
org.apache.uima.cas.impl.FeatureStructureImpl
org.apache.uima.cas.impl.FeatureStructureImplC
org.apache.uima.cas.impl.AnnotationBaseImpl
org.apache.uima.cas.impl.AnnotationImpl
- All Implemented Interfaces:
Cloneable,AnnotationBaseFS,FeatureStructure,AnnotationFS
Class comment for AnnotationImpl.java goes here.
-
Field Summary
Fields inherited from class org.apache.uima.cas.impl.FeatureStructureImplC
addr, casImpl -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor for AnnotationImpl.AnnotationImpl(int addr, CASImpl cas) Constructor for AnnotationImpl. -
Method Summary
Methods inherited from class org.apache.uima.cas.impl.AnnotationBaseImpl
getViewMethods inherited from class org.apache.uima.cas.impl.FeatureStructureImplC
equals, getAddress, getCAS, getCASImpl, hashCodeMethods inherited from class org.apache.uima.cas.impl.FeatureStructureImpl
clone, getavoidcollisionTypeCode, getBooleanValue, getByteValue, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getShortValue, getStringValue, getType, prettyPrint, prettyPrint, prettyPrint, setBooleanValue, setByteValue, setDoubleValue, setFeatureValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValueMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.uima.cas.AnnotationBaseFS
getViewMethods inherited from interface org.apache.uima.cas.FeatureStructure
clone, equals, getBooleanValue, getByteValue, getCAS, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getShortValue, getStringValue, getType, hashCode, setBooleanValue, setByteValue, setDoubleValue, setFeatureValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue
-
Constructor Details
-
AnnotationImpl
protected AnnotationImpl()Constructor for AnnotationImpl. -
AnnotationImpl
Constructor for AnnotationImpl.- Parameters:
addr- -cas- -
-
-
Method Details
-
getBegin
public int getBegin()Description copied from interface:AnnotationFSGet the start position of the annotation as character offset into the text. The smallest possible start position is0, the offset of the first character in the text.- Specified by:
getBeginin interfaceAnnotationFS- Returns:
- The start position.
- See Also:
-
getEnd
public int getEnd()Description copied from interface:AnnotationFSGet the end position of the annotation as character offset into the text. The end position points at the first character after the annotation, such that(getEnd()-getBegin()) == getCoveredText().length().- Specified by:
getEndin interfaceAnnotationFS- Returns:
- The end position.
- See Also:
-
getCoveredText
Description copied from interface:AnnotationFSGet the text covered by an annotation as a string. IfdocTextis your document text andannotan annotation, thenannot.getCoveredText().equals(docText.substring(annot.getBegin(), annot.getEnd())).- Specified by:
getCoveredTextin interfaceAnnotationFS- Returns:
- String
- See Also:
-
toString
- Overrides:
toStringin classAnnotationBaseImpl
-
toString
- Overrides:
toStringin classAnnotationBaseImpl
-