|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.site.elkb.Reference
ca.site.elkb.SemRel
public class SemRel
Represents a Roget's Thesaurus relation between a word or phrase. This can be a Cross-reference or a See reference. For example:
Constructor Summary | |
---|---|
SemRel()
Default constructor. |
|
SemRel(java.lang.String t,
int headNum,
java.lang.String refName)
Constructor which sets the relation type, Head number and Reference name. |
|
SemRel(java.lang.String t,
int headNum,
java.lang.String refName,
java.lang.String pos,
int paraNum,
int sgNum)
Constructor which sets the relation type, Head number and Reference name. |
Method Summary | |
---|---|
java.lang.String |
getType()
Returns the relation type. |
void |
print()
Prints this relation to the standard output. |
void |
setType(java.lang.String t)
Sets the relation type. |
java.lang.String |
toString()
Converts to a string representation the SemRel object. |
Methods inherited from class ca.site.elkb.Reference |
---|
getHeadNum, getIndexEntry, getPos, getRefName, setHeadNum, setIndexEntry, setPos, setRefName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SemRel()
public SemRel(java.lang.String t, int headNum, java.lang.String refName)
t
- headNum
- refName
- public SemRel(java.lang.String t, int headNum, java.lang.String refName, java.lang.String pos, int paraNum, int sgNum)
t
- headNum
- refName
- pos
- paraNum
- sgNum
- Method Detail |
---|
public java.lang.String getType()
public void setType(java.lang.String t)
t
- public java.lang.String toString()
toString
in class Reference
public void print()
print
in class Reference
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |