public class RAMDictionary.DictionaryData.WordBuilder extends Object implements Synset.IWordBuilder
| Constructor and Description |
|---|
WordBuilder(ISynset oldSynset,
IWord oldWord)
Constructs a new word builder object out of the specified old
synset and word.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public 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
nullNullPointerException - if either argument is nullpublic IWord toWord(ISynset synset)
Synset.IWordBuildertoWord in interface Synset.IWordBuildersynset - the synset to which this word should be attachedpublic void addVerbFrame(IVerbFrame frame)
Synset.IWordBuilderaddVerbFrame in interface Synset.IWordBuilderframe - the frame to be added, may not be nullpublic void addRelatedWord(IPointer type, IWordID id)
Synset.IWordBuilderaddRelatedWord in interface Synset.IWordBuildertype - the pointer type, may not be nullid - the word id, may not be nullCopyright © 2018. All rights reserved.