tp.model
Class Document

java.lang.Object
  extended by tp.model.Document

public class Document
extends java.lang.Object

Class, which is representing content of one document.


Constructor Summary
Document(java.lang.String content, java.lang.String topic)
          Constructor of the class.
 
Method Summary
 java.lang.String getContentDocument()
          Returns the tex contents of the document.
 int getID()
          Gets a document identifier.
 java.lang.String getTopic()
          Gets a document class.
 void setID(int id)
          Sets a document identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Document

public Document(java.lang.String content,
                java.lang.String topic)
Constructor of the class.

Method Detail

getContentDocument

public java.lang.String getContentDocument()
Returns the tex contents of the document.

Returns:
a string with document contents.

setID

public void setID(int id)
Sets a document identifier.

Parameters:
id - a new identifier

getID

public int getID()
Gets a document identifier.

Returns:
a document identifier

getTopic

public java.lang.String getTopic()
Gets a document class.

Returns:
a document class in a string