Class Token

All Implemented Interfaces:
Cloneable, AnnotationBaseFS, FeatureStructure, AnnotationBaseImpl, AnnotationImpl, FeatureStructureImpl, AnnotationFS

public class Token extends Annotation
Updated by JCasGen Thu Oct 08 18:40:03 CEST 2026 XML source: /Users/bluefire/git/uima-uimaj-release/target/checkout/uimafit-examples/target/jcasgen/typesystem.xml
  • Field Details

  • Constructor Details

    • Token

      @Deprecated protected Token()
      Deprecated.
      Never called. Disable default constructor
    • Token

      public Token(TypeImpl type, CASImpl casImpl)
      Internal - constructor used by generator
      Parameters:
      type - the type of this Feature Structure
      casImpl - the CAS this Feature Structure belongs to
    • Token

      public Token(JCas jcas)
      Parameters:
      jcas - JCas to which this Feature Structure belongs
    • Token

      public Token(JCas jcas, int begin, int end)
      Parameters:
      jcas - JCas to which this Feature Structure belongs
      begin - offset to the begin spot in the SofA
      end - offset to the end spot in the SofA
  • Method Details

    • getTypeIndexID

      public int getTypeIndexID()
      Overrides:
      getTypeIndexID in class Annotation
      Returns:
      index of the type
    • getPos

      public String getPos()
      getter for pos - gets
      Returns:
      value of the feature
    • setPos

      public void setPos(String v)
      setter for pos - sets
      Parameters:
      v - value to set into the feature