|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.princeton.wordnet.ejb.Synset edu.princeton.wordnet.ejb.Link
class Link
Link, a linked synset
Field Summary | |
---|---|
long |
theFromSynsetId
theFromSynsetId is the source synset id |
int |
theLinkType
theLinkType is the relation type |
Fields inherited from class edu.princeton.wordnet.ejb.Synset |
---|
theDefinition, theLexDomainId, theSample, theSynsetId |
Constructor Summary | |
---|---|
|
Link(LinksQueryCommand thisQuery)
Constructor from query for synsets linked to a given synset |
protected |
Link(TypedLinksQueryCommand thisQuery)
Constructor from query for synsets linked to a given synset through a given relation type |
Method Summary | |
---|---|
boolean |
canRecurse()
Get whether link can recurse |
java.lang.String |
getLinkName()
Get link name |
java.util.List<Link> |
getLinks(java.sql.Connection thisConnection,
long thisWordId)
Override : recurse only on links of the same link type |
Methods inherited from class edu.princeton.wordnet.ejb.Synset |
---|
getLexDomainName, getPosName, getSynsetWords, getSynsetWordsAsString, getTypedLinks |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int theLinkType
theLinkType
is the relation type
public long theFromSynsetId
theFromSynsetId
is the source synset id
Constructor Detail |
---|
public Link(LinksQueryCommand thisQuery) throws java.sql.SQLException
thisQuery
- is a query for synsets linked to a given synset
java.sql.SQLException
protected Link(TypedLinksQueryCommand thisQuery) throws java.sql.SQLException
thisQuery
- is a query for synsets linked to a given synset through a given relation type
java.sql.SQLException
Method Detail |
---|
public java.lang.String getLinkName()
public boolean canRecurse()
public java.util.List<Link> getLinks(java.sql.Connection thisConnection, long thisWordId)
getLinks
in class Synset
thisConnection
- is the database connectionthisWordId
- is the word id (for lexical links)
Synset.getLinks(java.sql.Connection, long)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |