Class DocumentAnnotation

All Implemented Interfaces:
Cloneable, AnnotationBaseFS, FeatureStructure, AnnotationBaseImpl, AnnotationImpl, FeatureStructureImpl, 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 Details

    • _TypeName

      public static final String _TypeName
      See Also:
    • _FeatName_language

      public static final String _FeatName_language
      See Also:
    • typeIndexID

      public static final int typeIndexID
    • type

      public static final int type
    • _FC_language

      private static final CallSite _FC_language
    • _FH_language

      private static final MethodHandle _FH_language
  • Constructor Details

    • DocumentAnnotation

      protected DocumentAnnotation()
    • DocumentAnnotation

      public DocumentAnnotation(JCas jcas)
    • DocumentAnnotation

      public DocumentAnnotation(TypeImpl t, CASImpl c)
      used by generator Make a new AnnotationBase
      Parameters:
      t - -
      c - -
  • Method Details

    • getTypeIndexID

      public int getTypeIndexID()
      Overrides:
      getTypeIndexID in class Annotation
      Returns:
      the type array index
    • getLanguage

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

      public void setLanguage(String v)
      setter for language
      Parameters:
      v - the language