Java Access to WordNet

danbikel.wordnet
Class WNDataEntry

java.lang.Object
  |
  +--danbikel.wordnet.WNDataEntry
All Implemented Interfaces:
Serializable

public class WNDataEntry
extends Object
implements Serializable

Container of all information associated with a synset's data entry in WordNet. Note that there are no public constructors for this class, as instances are only meant to be obtained by calling WordNet.getDataEntry(java.lang.String, int).

See Also:
Serialized Form

Field Summary
protected  boolean adjSatellite
          Indicator of whether this adjective synset is an adjective satellite (used only for adjectives).
protected  int fileNum
          The lexicographer's file number for this data entry.
protected  int[] frame
          The synset-level verb frames for this synset (used only for verbs).
protected  String gloss
          The gloss for this synset.
protected  boolean good
          Indicator of whether the data entry file line used to construct this object was valid.
protected  WNPointer[] pointer
          The pointers from or to this synset or its elements.
protected  String pos
          The part of speech for this data entry.
protected  int synset
          The unique integer representing a synset.
protected  WNWord[] word
          The lemmas in this synset.
 
Method Summary
 boolean equals(Object o)
          Returns whether the WNDataEntry object o is equal to this object.
 int getFileNum()
          Returns the lexicographer's file number for this data entry.
 WNPointer[] getFilteredPointers(Filter filter)
          Returns the pointers from or to this synset or its lemmas as filtered by filter.
 int[] getFrames()
          Returns the synset-level verb frames of this synset (used only for verbs).
 String getGloss()
          Returns the gloss of this synset.
 WNPointer[] getPointers()
          Returns the pointers from or to this synset or its lemmas.
 String getPos()
          Returns the part of speech of this data entry.
 int getSynset()
          Returns the synset of this data entry.
 WNWord[] getWords()
          Returns the lemmas in the synset of this data entry.
 boolean good()
          Returns whether the parse of the data file line with which this object was constructed was valid.
 boolean isAdjSatellite()
          Returns whether this adjective synset is an adjective satellite (used only for adjectives).
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

synset

protected int synset
The unique integer representing a synset.


fileNum

protected int fileNum
The lexicographer's file number for this data entry.


pos

protected String pos
The part of speech for this data entry.


word

protected WNWord[] word
The lemmas in this synset.


pointer

protected WNPointer[] pointer
The pointers from or to this synset or its elements.


frame

protected int[] frame
The synset-level verb frames for this synset (used only for verbs).


gloss

protected String gloss
The gloss for this synset.


good

protected boolean good
Indicator of whether the data entry file line used to construct this object was valid.


adjSatellite

protected boolean adjSatellite
Indicator of whether this adjective synset is an adjective satellite (used only for adjectives).

Method Detail

getSynset

public int getSynset()
Returns the synset of this data entry.


getFileNum

public int getFileNum()
Returns the lexicographer's file number for this data entry.


getPos

public String getPos()
Returns the part of speech of this data entry.


getWords

public WNWord[] getWords()
Returns the lemmas in the synset of this data entry.


getFrames

public int[] getFrames()
Returns the synset-level verb frames of this synset (used only for verbs).


getGloss

public String getGloss()
Returns the gloss of this synset.


good

public boolean good()
Returns whether the parse of the data file line with which this object was constructed was valid.


getPointers

public WNPointer[] getPointers()
Returns the pointers from or to this synset or its lemmas.


getFilteredPointers

public WNPointer[] getFilteredPointers(Filter filter)
Returns the pointers from or to this synset or its lemmas as filtered by filter.

Parameters:
filter - the filter used to extract only certain pointers

isAdjSatellite

public boolean isAdjSatellite()
Returns whether this adjective synset is an adjective satellite (used only for adjectives).


equals

public boolean equals(Object o)
Returns whether the WNDataEntry object o is equal to this object. Two WNDataEntry objects are equal if they have the same synset and the same part of speech.

Overrides:
equals in class Object

Java Access to WordNet

Author: Dan Bikel