|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.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 wordMethod Detail |
---|
public void addRelatedWord(IPointer type, IWordID id)
Synset.IWordBuilder
addRelatedWord
in interface Synset.IWordBuilder
type
- the pointer type, may not be null
id
- the word id, may not be null
public void addVerbFrame(IVerbFrame frame)
Synset.IWordBuilder
addVerbFrame
in interface Synset.IWordBuilder
frame
- the frame to be added, may not be null
public IWord toWord(ISynset synset)
Synset.IWordBuilder
toWord
in interface Synset.IWordBuilder
synset
- 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 |