edu.cmu.minorthird.text
Class Document

java.lang.Object
  extended by edu.cmu.minorthird.text.Document
All Implemented Interfaces:
java.io.Serializable

public class Document
extends java.lang.Object
implements java.io.Serializable

This class holds a single text 'document'. It holds the real text, plus all the tokens. This is the only direct pointer to the documentText.

Author:
ksteppe
See Also:
Serialized Form

Field Summary
 int charOffset
           
 
Constructor Summary
Document(java.lang.String documentId, java.lang.String documentText)
           
Document(java.lang.String documentId, java.lang.String documentText, int charOffset)
           
 
Method Summary
 java.lang.String getId()
           
 java.lang.String getText()
           
 TextToken[] getTokens()
           
 void setTokens(TextToken[] tokenArray)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

charOffset

public int charOffset
Constructor Detail

Document

public Document(java.lang.String documentId,
                java.lang.String documentText)

Document

public Document(java.lang.String documentId,
                java.lang.String documentText,
                int charOffset)
Method Detail

getText

public java.lang.String getText()

setTokens

public void setTokens(TextToken[] tokenArray)

getId

public java.lang.String getId()

getTokens

public TextToken[] getTokens()