javatools.database
Class WordNet.Synset

java.lang.Object
  extended by javatools.database.WordNet.Synset
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<WordNet.Synset>
Enclosing class:
WordNet

public static class WordNet.Synset
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable<WordNet.Synset>

Represents a WordNet synset

See Also:
Serialized Form

Field Summary
 int intMarker
          Public marker
 java.lang.Object marker
          Public marker
 
Constructor Summary
WordNet.Synset(int idnum)
          Constructs a synset from an id
 
Method Summary
 java.util.Set<WordNet.Synset> ancestors()
          Returns the set of ancestors
 int compareTo(WordNet.Synset o)
          Sorts synsets by id
 java.util.Set<WordNet.Synset> descendants()
          Returns the set of descendants
 boolean equals(java.lang.Object o)
          Tells wether the ids are the same
 java.util.List<WordNet.Synset> getDowns()
          Returns the downs.
 int getId()
          Returns the id.
 java.util.List<WordNet.Synset> getUps()
          Returns the ups.
 java.util.List<java.lang.String> getWords()
          Returns the words.
 WordNet.WordType getWordType()
          Returns WordType
 int hashCode()
          Returns the id
 java.lang.String toSmallString()
          Returns the most frequent word for this and the parent
 java.lang.String toString()
          Returns the id and the words of this synset
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

marker

public java.lang.Object marker
Public marker


intMarker

public int intMarker
Public marker

Constructor Detail

WordNet.Synset

public WordNet.Synset(int idnum)
Constructs a synset from an id

Method Detail

hashCode

public int hashCode()
Returns the id

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Tells wether the ids are the same

Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(WordNet.Synset o)
Sorts synsets by id

Specified by:
compareTo in interface java.lang.Comparable<WordNet.Synset>

toString

public final java.lang.String toString()
Returns the id and the words of this synset

Overrides:
toString in class java.lang.Object

getDowns

public java.util.List<WordNet.Synset> getDowns()
Returns the downs.


getId

public int getId()
Returns the id.


getUps

public java.util.List<WordNet.Synset> getUps()
Returns the ups.


getWords

public java.util.List<java.lang.String> getWords()
Returns the words.


toSmallString

public java.lang.String toSmallString()
Returns the most frequent word for this and the parent


getWordType

public WordNet.WordType getWordType()
Returns WordType


ancestors

public java.util.Set<WordNet.Synset> ancestors()
Returns the set of ancestors


descendants

public java.util.Set<WordNet.Synset> descendants()
Returns the set of descendants