Class SourceDocumentInformation_Type


public class SourceDocumentInformation_Type extends Annotation_Type
Stores detailed information about the original source document from which the current CAS was initialized. All information (like size) refers to the source document and not to the document in the CAS which may be converted and filtered by a CAS Initializer. For example this information will be written to the Semantic Search index so that the original document contents can be retrieved by queries. Updated by JCasGen Wed Nov 22 16:51:13 EST 2006
  • Field Details

    • typeIndexID

      public static final int typeIndexID
    • featOkTst

      public static final boolean featOkTst
  • Constructor Details

    • SourceDocumentInformation_Type

      public SourceDocumentInformation_Type(JCas jcas, Type casType)
      initialize variables to correspond with Cas Type and Features
      Parameters:
      jcas - -
      casType - -
  • Method Details

    • getFSGenerator

      protected FSGenerator getFSGenerator()
      Overrides:
      getFSGenerator in class Annotation_Type
    • getUri

      public String getUri(int addr)
      Parameters:
      addr - -
      Returns:
      the Uri
    • setUri

      public void setUri(int addr, String v)
      Parameters:
      addr - -
      v - the Uri
    • getOffsetInSource

      public int getOffsetInSource(int addr)
      Parameters:
      addr - -
      Returns:
      -
    • setOffsetInSource

      public void setOffsetInSource(int addr, int v)
      Parameters:
      addr - -
      v - -
    • getDocumentSize

      public int getDocumentSize(int addr)
      Parameters:
      addr - -
      Returns:
      -
    • setDocumentSize

      public void setDocumentSize(int addr, int v)
      Parameters:
      addr - -
      v - the document size
    • getLastSegment

      public boolean getLastSegment(int addr)
      Parameters:
      addr - -
      Returns:
      true if it is last segment
    • setLastSegment

      public void setLastSegment(int addr, boolean v)
      Parameters:
      addr - -
      v - true if last segment