gr.demokritos.iit.jinsect.documentModel
Class TextPrintImpl

java.lang.Object
  extended by gr.demokritos.iit.jinsect.documentModel.TextPrintImpl
All Implemented Interfaces:
ITextPrint

public class TextPrintImpl
extends java.lang.Object
implements ITextPrint

This class implements the ITextPrint interface, with default implementations.


Constructor Summary
TextPrintImpl()
          Creates a new instance of TextPrintImpl.
 
Method Summary
 DocumentNGramGraph getDocumentGraph()
          Should return the graph corresponding to the text representation.
 DocumentNGramHistogram getDocumentHistogram()
          Should return the histogram corresponding to the text representation.
 void setDocumentGraph(DocumentNGramGraph idgNew)
          Should set the histogram corresponding to the text representation.
 void setDocumentHistogram(DocumentNGramHistogram idnNew)
          Should set the histogram corresponding to the text representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextPrintImpl

public TextPrintImpl()
Creates a new instance of TextPrintImpl.

Method Detail

getDocumentHistogram

public DocumentNGramHistogram getDocumentHistogram()
Description copied from interface: ITextPrint
Should return the histogram corresponding to the text representation.

Specified by:
getDocumentHistogram in interface ITextPrint
Returns:
An n-gram histogram representing a text.

setDocumentHistogram

public void setDocumentHistogram(DocumentNGramHistogram idnNew)
Description copied from interface: ITextPrint
Should set the histogram corresponding to the text representation.

Specified by:
setDocumentHistogram in interface ITextPrint
Parameters:
idnNew - The n-gram histogram to replace the existing one.

getDocumentGraph

public DocumentNGramGraph getDocumentGraph()
Description copied from interface: ITextPrint
Should return the graph corresponding to the text representation.

Specified by:
getDocumentGraph in interface ITextPrint
Returns:
A document n-gram graph representing a text.

setDocumentGraph

public void setDocumentGraph(DocumentNGramGraph idgNew)
Description copied from interface: ITextPrint
Should set the histogram corresponding to the text representation.

Specified by:
setDocumentGraph in interface ITextPrint
Parameters:
idgNew - The n-gram graph to replace the existing one.