eu.larkc.core.data
Class PlainTextDocument

java.lang.Object
  extended by eu.larkc.core.data.PlainTextDocument
All Implemented Interfaces:
InformationSet, NaturalLanguageDocument, java.io.Serializable

public class PlainTextDocument
extends java.lang.Object
implements NaturalLanguageDocument

A plain text document, with text embedded (no caching or remote storage).

See Also:
Serialized Form

Constructor Summary
PlainTextDocument(java.lang.String text)
          Constructor.
 
Method Summary
 java.lang.String getText()
           
 SetOfStatements toRDF(SetOfStatements data)
          Serializes this object to SetOfStatements.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainTextDocument

public PlainTextDocument(java.lang.String text)
Constructor.

Parameters:
text - The plain text associated with this object.
Method Detail

getText

public java.lang.String getText()
Specified by:
getText in interface NaturalLanguageDocument

toRDF

public SetOfStatements toRDF(SetOfStatements data)
Description copied from interface: InformationSet
Serializes this object to SetOfStatements.

Specified by:
toRDF in interface InformationSet
Parameters:
data - is stream to serialize this object to.
Returns:
reference to the set of statements that contains the serialized data.