|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.princeton.wordnet.ejb.Mapping
public class Mapping
Id-name mappings
Field Summary | |
---|---|
static int |
ANYTYPE
is the constant for unspecified search types (pos, categories, links) |
static int |
NONRECURSIVE
is the constant for non recursive queries |
static int |
theHyponymId
theHyponymId is id for hyponym relation |
static int |
theInstanceHyponymId
theInstanceHyponymId is id for instance hyponym relation |
static int |
theTopsCategory
theTopsCategory is a constant for Tops category id |
Constructor Summary | |
---|---|
Mapping()
|
Method Summary | |
---|---|
static boolean |
canRecurse(int thisLinkType)
Determine if this link can recurse |
static int |
getCategoryId(java.lang.String thisPosName,
java.lang.String thisCategoryName)
Find category id from part-of-speech name and category name |
static java.lang.String |
getCategoryName(int thisCategoryId)
Find category name from category id |
static java.lang.String |
getLinkName(int thisLinkType)
Find link name from link id |
static int |
getLinkType(java.lang.String thisLinkName)
Find link id from link name |
static int |
getPosId(java.lang.String thisPosName)
Find part-of-speech id (n,v,a,r) from part-of-speech name |
static java.lang.String |
getPosName(int thisCategoryId)
Find part-of-speech name from category id |
static void |
init(java.sql.Connection thisConnection)
Read mappings from database |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int theTopsCategory
theTopsCategory
is a constant for Tops category id
public static final int theHyponymId
theHyponymId
is id for hyponym relation
public static final int theInstanceHyponymId
theInstanceHyponymId
is id for instance hyponym relation
public static final int ANYTYPE
public static final int NONRECURSIVE
Constructor Detail |
---|
public Mapping()
Method Detail |
---|
public static void init(java.sql.Connection thisConnection) throws javax.ejb.EJBException
thisConnection
- is the database connection
javax.ejb.EJBException
public static java.lang.String getPosName(int thisCategoryId)
thisCategoryId
- is the category id
public static java.lang.String getCategoryName(int thisCategoryId)
thisCategoryId
- is the category id
public static int getCategoryId(java.lang.String thisPosName, java.lang.String thisCategoryName)
thisPosName
- is the target part-of-speech namethisCategoryName
- is the target category name
public static int getPosId(java.lang.String thisPosName)
thisPosName
- is the target part-of-speech name
public static java.lang.String getLinkName(int thisLinkType)
thisLinkType
- is the target link id
public static int getLinkType(java.lang.String thisLinkName)
thisLinkName
- is the target link name
public static boolean canRecurse(int thisLinkType)
thisLinkType
- is the target link id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |