hviezdoslav.thezaurus
Class SkmiThezaurusEngine

java.lang.Object
  extended byhviezdoslav.thezaurus.SkmiThezaurusEngine
All Implemented Interfaces:
ThezaurusEngine

public class SkmiThezaurusEngine
extends java.lang.Object
implements ThezaurusEngine

Retrieves synonyms from plaintext file delivered over HTTP.

Author:
Robert Novotny

Constructor Summary
SkmiThezaurusEngine()
           
SkmiThezaurusEngine(WordFactory wordFactory)
           
 
Method Summary
 Word[] getSynonyms(Word w)
          Retrieves synonym to given words
 WordFactory getWordFactory()
           
static void main(java.lang.String[] args)
           
 void setWordFactory(WordFactory wordFactory)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkmiThezaurusEngine

public SkmiThezaurusEngine()

SkmiThezaurusEngine

public SkmiThezaurusEngine(WordFactory wordFactory)
Method Detail

getWordFactory

public WordFactory getWordFactory()

setWordFactory

public void setWordFactory(WordFactory wordFactory)

getSynonyms

public Word[] getSynonyms(Word w)
Description copied from interface: ThezaurusEngine
Retrieves synonym to given words

Specified by:
getSynonyms in interface ThezaurusEngine
Parameters:
w - Word, to which provide synonyms
Returns:
synonyms to given Word.

main

public static void main(java.lang.String[] args)