|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Used to write words and their translations. Writers are identified by a identification
defined in the configuration file.
Field Summary | |
static java.lang.String |
NO_TRANSLATION
Printed as translation substitute if no translation was found |
Method Summary | |
java.lang.String |
getBookTitle()
Returns bool title |
java.lang.String |
getId()
Returns writers identification |
int |
getNrOfSentences()
Returns number of sentences to be printed at most |
void |
setBookTitle(java.lang.String title)
Sets title of book. |
void |
setId(java.lang.String ids)
Each writer is identified by a unique id. |
void |
setNrOfSentences(int nrOfSentences)
Sets number of sentences to be printed at most |
void |
writeFooter(java.io.Writer out)
Called after writing all translations. |
void |
writeHeader(java.io.Writer out)
Called before writing any translations. |
void |
writeTranslation(java.io.Writer out,
java.lang.String key,
java.util.Iterator translations,
java.lang.String line,
java.lang.String chapter,
java.util.Vector sentences)
Called for each translation. |
Field Detail |
public static final java.lang.String NO_TRANSLATION
Method Detail |
public void setBookTitle(java.lang.String title)
title
- Title of bookpublic java.lang.String getBookTitle()
public void setNrOfSentences(int nrOfSentences)
nrOfSentences
- number of sentence to be printed at mostpublic int getNrOfSentences()
public void writeHeader(java.io.Writer out)
out
- writer output is written topublic void writeFooter(java.io.Writer out)
out
- writer output is written to.public void writeTranslation(java.io.Writer out, java.lang.String key, java.util.Iterator translations, java.lang.String line, java.lang.String chapter, java.util.Vector sentences)
out
- output is written to.key
- Word as found in the input.translations
- Iterator of Translation
line
- line location where the word occuredchapter
- chapter the word occurredsentences
- vector of StringBufferspublic void setId(java.lang.String ids)
ids
- public java.lang.String getId()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |