net.sf.extjwnl.princeton.data
Class AbstractPrincetonDictionaryElementFactory
java.lang.Object
net.sf.extjwnl.princeton.data.AbstractPrincetonDictionaryElementFactory
- All Implemented Interfaces:
- Owned
- Direct Known Subclasses:
- AbstractPrincetonDatabaseDictionaryElementFactory, AbstractPrincetonFileDictionaryElementFactory
public abstract class AbstractPrincetonDictionaryElementFactory
- extends Object
- implements Owned
Base class for element factories. Holds some common code.
- Author:
- Aliaksandr Autayeu
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dictionary
protected Dictionary dictionary
AbstractPrincetonDictionaryElementFactory
public AbstractPrincetonDictionaryElementFactory(Dictionary dictionary)
createWord
protected Word createWord(Synset synset,
int index,
String lemma)
- Creates a word.
- Parameters:
synset
- synsetindex
- indexlemma
- lemma
- Returns:
- word
setDictionary
public void setDictionary(Dictionary dictionary)
throws JWNLException
- Description copied from interface:
Owned
- Sets the dictionary this object belongs to.
- Specified by:
setDictionary
in interface Owned
- Parameters:
dictionary
- the dictionary this object belongs to
- Throws:
JWNLException
- JWNLException
getDictionary
public Dictionary getDictionary()
- Description copied from interface:
Owned
- Returns the dictionary this object belongs to.
- Specified by:
getDictionary
in interface Owned
- Returns:
- the dictionary this object belongs to
Copyright © 2011. All Rights Reserved.