Interface AnnotationFS

    • Method Detail

      • getBegin

        int getBegin()
        Get the start position of the annotation as character offset into the text. The smallest possible start position is 0, the offset of the first character in the text.
        Returns:
        The start position.
      • getEnd

        int getEnd()
        Get 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().
        Returns:
        The end position.
      • getCoveredText

        String getCoveredText()
        Get the text covered by an annotation as a string. If docText is your document text and annot an annotation, then annot.getCoveredText().equals(docText.substring(annot.getBegin(), annot.getEnd())).
        Returns:
        String