|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttp.model.DocumentsDatabase
public class DocumentsDatabase
This class serves as a transactional database of textual documents. It allows to store texts of documents and work with them.
Constructor Summary | |
---|---|
DocumentsDatabase()
Constructor of the class. |
Method Summary | |
---|---|
void |
addDocument(Document document)
Adds a document to the database. |
int |
getCountDocuments()
Returns the size of database (count of documents) |
Document |
getDocumentAt(int index)
Method returns a document being at a given position. |
Document |
getDocumentSingly()
Method returns a document being at position next to the cursor and increments value of the cursor. |
void |
setDocoumentTo(int index,
Document document)
Method stores a document to a given position. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentsDatabase()
Method Detail |
---|
public void addDocument(Document document)
document
- document to addpublic void setDocoumentTo(int index, Document document)
index
- positiondocument
- documentpublic Document getDocumentSingly()
public Document getDocumentAt(int index)
index
- position of a document
public int getCountDocuments()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |