Class DocumentAnnotation

  • All Implemented Interfaces:
    java.lang.Cloneable, AnnotationBaseFS, FeatureStructure, AnnotationFS

    public class DocumentAnnotation
    extends Annotation
    The JCas class definition for the CAS DocumentAnnotation type. When text CASs are created, one instance of this type is created and made accessible via a call to the JCas.getDocumentAnnotationFs() method. It is also a subtype of Annotation and therefore would appear as one of the annotations that an iterator over all the annotations would return.
    • Field Detail

      • typeIndexID

        public static final int typeIndexID
      • type

        public static final int type
    • Constructor Detail

      • DocumentAnnotation

        protected DocumentAnnotation()
      • DocumentAnnotation

        public DocumentAnnotation​(int addr,
                                  TOP_Type type)
      • DocumentAnnotation

        public DocumentAnnotation​(JCas jcas)
    • Method Detail

      • getTypeIndexID

        public int getTypeIndexID()
        Description copied from class: TOP
        used to obtain reference to the TOP_Type instance
        Overrides:
        getTypeIndexID in class Annotation
        Returns:
        the type array index
      • getLanguage

        public java.lang.String getLanguage()
        getter for language
        Returns:
        the language
      • setLanguage

        public void setLanguage​(java.lang.String v)
        setter for language
        Parameters:
        v - the language