|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objecttextmaven.application.analyzer.annotator.Annotator
Annotates text word by word with hyperlinks to a vocabulary file. The vocabulary file has to be generated
with the Translator using the word list generated by the WordExtractor.
| Constructor Summary | |
Annotator()
Standard constructor |
|
Annotator(HTMLWriter writer,
IExclusionList list,
IDictionary dict)
Constructor |
|
| Method Summary | |
void |
endParagraph()
Called when a paragraph ends |
void |
endSentence(java.lang.String sentence,
char punctuation)
Called when the sentence ended. |
void |
endText()
Writes HTML footer |
IDictionary |
getDictionary()
|
IExclusionList |
getExclusionList()
|
HTMLWriter |
getWriter()
|
void |
heading(int depth,
java.lang.String title)
Called when a heading was read. |
void |
setDictionary(IDictionary dictionary)
|
void |
setExclusionList(IExclusionList exclusionList)
|
void |
setWriter(HTMLWriter writer)
|
void |
startParagraph()
Writes bookmark if threshold reached |
void |
startSentence()
Called when a new sentence starts. |
void |
startText()
Writes HTML header |
void |
word(java.lang.String word)
Get stem and passes word to the HTML writer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Annotator()
public Annotator(HTMLWriter writer,
IExclusionList list,
IDictionary dict)
writer - HTMLWriter to be usedlist - exclusion listdict - dictionary used for stemming| Method Detail |
public void startText()
startText in interface ITextHandlerITextHandler.startText()public void endText()
endText in interface ITextHandlerITextHandler.endText()public void startParagraph()
startParagraph in interface ITextHandlerITextHandler.startParagraph()public void endParagraph()
ITextHandler
endParagraph in interface ITextHandlerpublic void startSentence()
ITextHandler
startSentence in interface ITextHandler
public void endSentence(java.lang.String sentence,
char punctuation)
ITextHandler
endSentence in interface ITextHandlersentence - Sentence read, incl. punctuation char.punctuation - Punctuation character terminating the sentence
public void heading(int depth,
java.lang.String title)
ITextHandler
heading in interface ITextHandlerdepth - heading depthtitle - heading titlepublic void word(java.lang.String word)
word in interface ITextHandlerword - word readITextHandler.word(java.lang.String)public IDictionary getDictionary()
public void setDictionary(IDictionary dictionary)
dictionary - The dictionary to set.public HTMLWriter getWriter()
public void setWriter(HTMLWriter writer)
writer - The writer to set.public IExclusionList getExclusionList()
public void setExclusionList(IExclusionList exclusionList)
exclusionList - The exclusionList to set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||