|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mit.jwi.item.Synset.WordBuilder
public static class Synset.WordBuilder
Holds information about word objects before they are instantiated.
| Field Summary | |
|---|---|
protected int |
lexID
|
| Constructor Summary | |
|---|---|
Synset.WordBuilder(int num,
java.lang.String lemma,
int lexID,
AdjMarker marker)
Constructs a new word builder object. |
|
| 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 |
| Field Detail |
|---|
protected final int lexID
| Constructor Detail |
|---|
public Synset.WordBuilder(int num,
java.lang.String lemma,
int lexID,
AdjMarker marker)
num - the word numberlemma - the lemmalexID - the id of the lexical file in which the word is listedmarker - the adjective marker for the word| Method Detail |
|---|
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 nullpublic void addVerbFrame(IVerbFrame frame)
Synset.IWordBuilder
addVerbFrame in interface Synset.IWordBuilderframe - the frame to be added, may not be nullpublic IWord toWord(ISynset synset)
Synset.IWordBuilder
toWord in interface Synset.IWordBuildersynset - the synset to which this word should be attached
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||