edu.princeton.wordnet.ejb
Class VnSynset

java.lang.Object
  extended by edu.princeton.wordnet.ejb.VnSynset

public class VnSynset
extends java.lang.Object

Synset extended to hold VerbNet specific data

Author:
Bernard Bou

Field Summary
 int theCategoryId
          theCategoryId is the synset's category
 java.lang.String theDefinition
          theDefinition is the synset's definition
 boolean theFlag
          theFlag is a selection flag used by some queries
 java.lang.String theSample
          theSample is a string concatenating the synset's samples
 long theSynsetId
          theSynsetId is the synset's id in the database
 
Method Summary
 java.lang.String getCategoryName()
          Get the synset's category name
 java.util.List<edu.princeton.wordnet.ejb.Link> getLinks(java.sql.Connection thisConnection, long thisWordId)
          Get synsets linked to the synset
 java.lang.String getPosName()
          Get the synset's part-of-speech
 java.util.List<Word> getSynsetWords(java.sql.Connection thisConnection)
          Get words in the synset as a list
 java.lang.String getSynsetWordsAsString(java.sql.Connection thisConnection)
          Get words in the synset as a string
 java.util.List<edu.princeton.wordnet.ejb.Link> getTypedLinks(java.sql.Connection thisConnection, long thisWordId, int thisLinkType)
          Get synsets linked to the synset through a given relation type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theFlag

public boolean theFlag
theFlag is a selection flag used by some queries


theSynsetId

public long theSynsetId
theSynsetId is the synset's id in the database


theDefinition

public java.lang.String theDefinition
theDefinition is the synset's definition


theCategoryId

public int theCategoryId
theCategoryId is the synset's category


theSample

public java.lang.String theSample
theSample is a string concatenating the synset's samples

Method Detail

getSynsetWords

public java.util.List<Word> getSynsetWords(java.sql.Connection thisConnection)
Get words in the synset as a list

Parameters:
thisConnection - is the connection to the database
Returns:
list of words in synset

getSynsetWordsAsString

public java.lang.String getSynsetWordsAsString(java.sql.Connection thisConnection)
Get words in the synset as a string

Parameters:
thisConnection - is the connection to the database
Returns:
list of words in synset as a comma-separated string

getPosName

public java.lang.String getPosName()
Get the synset's part-of-speech

Returns:
synset's part-of-speech

getCategoryName

public java.lang.String getCategoryName()
Get the synset's category name

Returns:
synset's category name

getLinks

public java.util.List<edu.princeton.wordnet.ejb.Link> getLinks(java.sql.Connection thisConnection,
                                                               long thisWordId)
Get synsets linked to the synset

Parameters:
thisConnection - is the database connection
thisWordId - is the word id (for lexical links)
Returns:
list of synsets linked to the synset

getTypedLinks

public java.util.List<edu.princeton.wordnet.ejb.Link> getTypedLinks(java.sql.Connection thisConnection,
                                                                    long thisWordId,
                                                                    int thisLinkType)
Get synsets linked to the synset through a given relation type

Parameters:
thisConnection - is the database connection
thisWordId - is the word id (for lexical links)
thisLinkType - is the link type
Returns:
list of synsets linked to the synset through a given relation type