gov.sandia.cognition.text
Interface OccurrenceInText<DataType>

Type Parameters:
DataType - The type of the data that occurred.
All Known Subinterfaces:
TermOccurrence, Token
All Known Implementing Classes:
AbstractOccurrenceInText, DefaultTermOccurrence, DefaultToken

public interface OccurrenceInText<DataType>

An interface for a marker that some data occurred in some span of text.

Since:
3.0
Author:
Justin Basilico

Method Summary
 DataType getData()
          Gets the data that occurred in the text.
 int getLength()
          Gets the length of text where the occurrence appears.
 int getStart()
          Gets the starting index of the occurrence in the text.
 

Method Detail

getData

DataType getData()
Gets the data that occurred in the text.

Returns:
The data that occurred.

getStart

int getStart()
Gets the starting index of the occurrence in the text.

Returns:
The starting index of the occurrence in the text.

getLength

int getLength()
Gets the length of text where the occurrence appears.

Returns:
The length of text where the occurrence appears.