|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.princeton.wordnet.ejb.Synset
class Synset
Synset
Field Summary | |
---|---|
java.lang.String |
theDefinition
theDefinition is the synset's definition |
int |
theLexDomainId
theLexDomainId is the synset's lexdomain |
java.lang.String |
theSample
theSample is a string concatenating the synset's samples |
long |
theSynsetId
theSynsetId is the synset's id in the database |
Constructor Summary | |
---|---|
protected |
Synset(LinksQueryCommand thisQuery)
Constructor from query for linked synsets |
protected |
Synset(long thisSynsetId,
java.lang.String thisDefinition,
int thisLexDomainId,
java.lang.String thisSample)
|
protected |
Synset(SynsetsQueryCommand thisQuery)
Constructor from query for synsets |
protected |
Synset(TypedLinksQueryCommand thisQuery)
Constructor from query for synsets linked through a given relation type |
protected |
Synset(TypedSynsetsQueryCommand thisQuery)
Constructor from query for synsets of a given type |
Method Summary | |
---|---|
java.lang.String |
getLexDomainName()
Get the synset's lexdomain name |
java.util.List<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<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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public long theSynsetId
theSynsetId
is the synset's id in the database
public java.lang.String theDefinition
theDefinition
is the synset's definition
public int theLexDomainId
theLexDomainId
is the synset's lexdomain
public java.lang.String theSample
theSample
is a string concatenating the synset's samples
Constructor Detail |
---|
protected Synset(long thisSynsetId, java.lang.String thisDefinition, int thisLexDomainId, java.lang.String thisSample)
thisSynsetId
- is the synset idthisDefinition
- is the definitionthisLexDomainId
- is the lexdomainidthisSample
- is the sampleprotected Synset(SynsetsQueryCommand thisQuery) throws java.sql.SQLException
thisQuery
- is a query for synsets
java.sql.SQLException
protected Synset(TypedSynsetsQueryCommand thisQuery) throws java.sql.SQLException
thisQuery
- is a query for synsets of a given type
java.sql.SQLException
protected Synset(LinksQueryCommand thisQuery) throws java.sql.SQLException
thisQuery
- is a query for linked synsets
java.sql.SQLException
protected Synset(TypedLinksQueryCommand thisQuery) throws java.sql.SQLException
thisQuery
- is a query for synsets linked through a given relation type
java.sql.SQLException
Method Detail |
---|
public java.util.List<Word> getSynsetWords(java.sql.Connection thisConnection)
thisConnection
- is the connection to the database
public java.lang.String getSynsetWordsAsString(java.sql.Connection thisConnection)
thisConnection
- is the connection to the database
public java.lang.String getPosName()
public java.lang.String getLexDomainName()
public java.util.List<Link> getLinks(java.sql.Connection thisConnection, long thisWordId)
thisConnection
- is the database connectionthisWordId
- is the word id (for lexical links)
public java.util.List<Link> getTypedLinks(java.sql.Connection thisConnection, long thisWordId, int thisLinkType)
thisConnection
- is the database connectionthisWordId
- is the word id (for lexical links)thisLinkType
- is the link type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |