|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.site.elkb.Reference
public class Reference
Represents a symbolic pointer to a location where a specific word or phrase can be found in Roget's Thesaurus. A reference is identified by a keyword, head number and part of speech sequence.
An example of a Reference is: obstetrics 167 n. This instance of a Reference is represented as:
Constructor Summary | |
---|---|
Reference()
Default constructor. |
|
Reference(java.lang.String ref)
Constructor that creates a Reference object by parsing a string. |
|
Reference(java.lang.String name,
int head,
java.lang.String p)
Constructor which sets the reference name, Head number and part-of-speech. |
|
Reference(java.lang.String name,
int head,
java.lang.String p,
java.lang.String entry)
Constructor which sets the referebnce name, Head number, part-of-speech, and Index entry. |
Method Summary | |
---|---|
int |
getHeadNum()
Returns the Head number of this Reference. |
java.lang.String |
getIndexEntry()
Returns the Index entry of this Reference. |
java.lang.String |
getPos()
Returns the part-of-speech of this Reference. |
java.lang.String |
getRefName()
Returns the name of this Reference. |
void |
print()
Prints this Reference to the standard output. |
void |
setHeadNum(int head)
Sets the Head number of this Reference. |
void |
setIndexEntry(java.lang.String entry)
Sets the Index entry of this Reference. |
void |
setPos(java.lang.String p)
Sets the part-of-speech of this Reference. |
void |
setRefName(java.lang.String name)
Sets the name of this Reference. |
java.lang.String |
toString()
Converts to a string representation the Reference object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Reference()
public Reference(java.lang.String name, int head, java.lang.String p)
name
- head
- p
- public Reference(java.lang.String name, int head, java.lang.String p, java.lang.String entry)
name
- head
- p
- entry
- public Reference(java.lang.String ref)
light 417
N.
. The Index entry is not parsed with the reference.
ref
- Method Detail |
---|
public java.lang.String toString()
word list 87 n. [thesaurus]
RefName HeadNum POS [IndexEntry]
toString
in class java.lang.Object
public void print()
word list 87 n.
RefName HeadNum POS
public java.lang.String getRefName()
public void setRefName(java.lang.String name)
name
- public java.lang.String getPos()
public void setPos(java.lang.String p)
p
- public int getHeadNum()
public void setHeadNum(int head)
head
- public java.lang.String getIndexEntry()
public void setIndexEntry(java.lang.String entry)
entry
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |