|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mit.jwi.RAMDictionary.DictionaryData.WordBuilder
public class RAMDictionary.DictionaryData.WordBuilder
A utility class that allows us to build word objects
| Constructor Summary | |
|---|---|
RAMDictionary.DictionaryData.WordBuilder(ISynset oldSynset,
IWord oldWord)
Constructs a new word builder object out of the specified old synset and word. |
|
| Method Summary | |
|---|---|
void |
addRelatedWord(IPointer type,
IWordID id)
Adds a pointer from this word to another word with the specified id. |
void |
addVerbFrame(IVerbFrame frame)
Adds the specified verb frame to this word. |
IWord |
toWord(ISynset synset)
Creates the word represented by this builder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RAMDictionary.DictionaryData.WordBuilder(ISynset oldSynset,
IWord oldWord)
oldSynset - the old synset that backs this builder; may not be
nulloldWord - the old word that backs this builder; may not be
null
java.lang.NullPointerException - if either argument is null| Method Detail |
|---|
public IWord toWord(ISynset synset)
Synset.IWordBuilder
toWord in interface Synset.IWordBuildersynset - the synset to which this word should be attached
public void addVerbFrame(IVerbFrame frame)
Synset.IWordBuilder
addVerbFrame in interface Synset.IWordBuilderframe - the frame to be added, may not be null
public void addRelatedWord(IPointer type,
IWordID id)
Synset.IWordBuilder
addRelatedWord in interface Synset.IWordBuildertype - the pointer type, may not be nullid - the word id, may not be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||