|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.extjwnl.princeton.data.AbstractPrincetonDictionaryElementFactory
public abstract class AbstractPrincetonDictionaryElementFactory
Base class for element factories. Holds some common code.
Field Summary | |
---|---|
static String |
CACHE_STRINGS_KEY
Whether to cache strings in .intern like manner. |
protected boolean |
cacheStrings
|
protected Dictionary |
dictionary
|
protected Pool<String> |
stringCache
|
Constructor Summary | |
---|---|
AbstractPrincetonDictionaryElementFactory(Dictionary dictionary,
Map<String,Param> params)
|
Method Summary | |
---|---|
protected Word |
createWord(Synset synset,
int index,
String lemma)
Creates a word. |
Dictionary |
getDictionary()
Returns the dictionary this object belongs to. |
void |
setDictionary(Dictionary dictionary)
Sets the dictionary this object belongs to. |
void |
startCaching()
|
void |
stopCaching()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Dictionary dictionary
public static final String CACHE_STRINGS_KEY
protected boolean cacheStrings
protected Pool<String> stringCache
Constructor Detail |
---|
public AbstractPrincetonDictionaryElementFactory(Dictionary dictionary, Map<String,Param> params)
Method Detail |
---|
protected Word createWord(Synset synset, int index, String lemma)
synset
- synsetindex
- indexlemma
- lemma
public void setDictionary(Dictionary dictionary) throws JWNLException
Owned
setDictionary
in interface Owned
dictionary
- the dictionary this object belongs to
JWNLException
- JWNLExceptionpublic Dictionary getDictionary()
Owned
getDictionary
in interface Owned
public void startCaching()
public void stopCaching()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |