|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.site.elkb.SG
public class SG
Represents a Roget's Thesaurus Semicolon Group. For example:
Constructor Summary | |
---|---|
SG()
Default constructor. |
|
SG(int num)
Constructor takes a sg num |
|
SG(int numSG,
int numP,
int numH,
java.util.ArrayList<java.lang.String> currentSGWords,
java.lang.String p)
Constructor that sets the Semicolon Group number, Paragraph number, Head number, the words and phases of the Semicolon Group and the part-of-speech. |
|
SG(int numSG,
int numP,
int numH,
java.lang.String text,
java.lang.String p)
Constructor that sets the Semicolon Group number, Paragraph number, Head number, the words and phases of the Semicolon Group and the part-of-speech. |
|
SG(int num,
java.lang.String text)
Constructor that sets the Semicolon Group number and the words and phases that it contains. |
Method Summary | |
---|---|
void |
addSemRel(SemRel rel)
Adds a relation to this Semicolon Group |
void |
addWord(java.lang.String word)
Adds a word or phrase to this Semicolon Group. |
void |
addWord(java.lang.String word,
java.lang.String tag)
Adds a word or phrase and its style tag to this Semicolon Group. |
java.lang.String |
format()
Returns this Semicolon Group formatted in a string, including references, style tags and punctuation. |
java.util.ArrayList<java.lang.String> |
getAllWordList()
Returns the list of words and phrases, including the references, contained in this Semicolon Group. |
int |
getCRefCount()
Returns the number Cross-references in this Semicolon Group. |
java.lang.String |
getGroup()
Returns a string containing all of the words and phrases in the Semicolon Group minus the references. |
int |
getHeadNum()
Returns the Head number of this Semicolon Group. |
java.lang.String |
getOffset()
Returns a symbolic adress of this Semicolon Group. |
java.util.ArrayList<java.lang.String> |
getOffsetList()
Returns a list of Semicolon Groups with their symbolic addresses. |
java.lang.String |
getParaKey()
Returns the Paragraph keyword of this Semicolon Group. |
int |
getParaNum()
Returns the Paragraph number of this Semicolon Group. |
java.lang.String |
getPOS()
Returns the part-of-speech of this Semicolon Group. |
java.lang.String |
getReference()
Returns a string containing only the references of this Semicolon Group. |
int |
getSeeCount()
Returns the number See refereces in this Semicolon Group. |
java.util.ArrayList<SemRel> |
getSemRelList()
Returns the list of relations of this Semicolon Group. |
int |
getSGNum()
Returns the number of this Semicolon Group. |
java.util.ArrayList<java.lang.String> |
getStyleTagList()
Returns the list of style tags of this Semicolon Group. |
int |
getWordCount()
Returns the number of words and phrases in this Semicolon Group. |
java.util.ArrayList<java.lang.String> |
getWordList()
Returns the list of words and phrases, minus the references, contained in this Semicolon Group. |
void |
print()
Prints this Semicolon Group to the standard output. |
void |
setHeadNum(int num)
Sets the Head number of this Semicolon Group. |
void |
setParaKey(java.lang.String key)
Sets the Paragraph keyword of this Semicolon Group. |
void |
setParaNum(int num)
Sets the Paragraph number of this Semicolon Group. |
void |
setPOS(java.lang.String p)
Sets the part-of-speech of this Semicolon Group. |
void |
setSGNum(int num)
Sets the number of this Semicolon Group. |
void |
setText(java.lang.String text)
Sets the words and phrases used in this Semicolon Group. |
java.lang.String |
toString()
Converts to a string representation the SG object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SG()
public SG(int num)
num
- public SG(int num, java.lang.String text)
num
- text
- public SG(int numSG, int numP, int numH, java.lang.String text, java.lang.String p)
numSG
- numP
- numH
- text
- p
- public SG(int numSG, int numP, int numH, java.util.ArrayList<java.lang.String> currentSGWords, java.lang.String p)
numSG
- numP
- numH
- currentSGWords
- p
- Method Detail |
---|
public int getSGNum()
public void setSGNum(int num)
num
- public int getParaNum()
public void setParaNum(int num)
num
- public int getHeadNum()
public void setHeadNum(int num)
num
- public java.lang.String getParaKey()
public void setParaKey(java.lang.String key)
key
- public java.lang.String getPOS()
public void setPOS(java.lang.String p)
p
- public int getCRefCount()
public int getSeeCount()
public java.lang.String getOffset()
public void addWord(java.lang.String word)
word
- public void addWord(java.lang.String word, java.lang.String tag)
word
- tag
- public void addSemRel(SemRel rel)
rel
- public java.util.ArrayList<java.lang.String> getWordList()
public java.util.ArrayList<java.lang.String> getAllWordList()
public java.util.ArrayList<java.lang.String> getStyleTagList()
public java.util.ArrayList<SemRel> getSemRelList()
public int getWordCount()
public void setText(java.lang.String text)
text
- public java.lang.String toString()
toString
in class java.lang.Object
public void print()
public java.lang.String getGroup()
public java.lang.String getReference()
public java.lang.String format()
public java.util.ArrayList<java.lang.String> getOffsetList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |