public class Dokument
extends java.lang.Object
Constructor and Description |
---|
Dokument()
Constructor with initialization.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getJmeno()
Gets the name of the document.
|
java.lang.String |
getKategorie()
Returns the category of current document.
|
java.util.HashMap<java.lang.String,Slovo> |
getSlova()
Gets the set of words contained in the document.
|
java.io.File |
getSoubor()
Gets the file, which contains the document.
|
java.lang.String |
getText()
Gets the text content of the document.
|
java.lang.String |
getTitle()
Gets the title of the document.
|
void |
opravPoImportu()
Conversion of a collection into a hash map - done after import.
|
void |
pripravNaExport()
Conversion of a hash map into collection - preparation to export.
|
void |
setJmeno(java.lang.String jmeno)
Sets the name of the document.
|
void |
setKategorie(java.lang.String kategorie)
Sets the category of current document.
|
void |
setSlova(java.util.HashMap<java.lang.String,Slovo> slova)
Sets the hash map contents of words contained in the document.
|
void |
setSoubor(java.io.File soubor)
Sets the file, which contains the document.
|
void |
setText(java.lang.String text)
Sets the text content of the document.
|
void |
setTitle(java.lang.String title)
Sets the title of the document.
|
public java.lang.String getKategorie()
public void setKategorie(java.lang.String kategorie)
kategorie
- category namepublic void pripravNaExport()
public void opravPoImportu()
public java.lang.String getText()
public void setText(java.lang.String text)
text
- document contents in a form of stringpublic java.lang.String getJmeno()
public void setJmeno(java.lang.String jmeno)
jmeno
- name in a form of stringpublic java.util.HashMap<java.lang.String,Slovo> getSlova()
public void setSlova(java.util.HashMap<java.lang.String,Slovo> slova)
slova
- hash map of wordspublic java.io.File getSoubor()
public void setSoubor(java.io.File soubor)
soubor
- a file with the document contentspublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- of the document