|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.site.elkb.RogetClass
public class RogetClass
Represents the topmost element in Roget's Thesaurus Tabular Synopsis of Categories. It is represented by its number, name, subclass name if it is a subclass of an original Roget Class, and range of Sections that it contains. For example, Class 4. Intellect: the exercise of the mind (Formation of ideas) is represented as:
Constructor Summary | |
---|---|
RogetClass()
Default constructor. |
|
RogetClass(int num,
java.lang.String name)
Constructor which sets the Class number and name. |
|
RogetClass(int num,
java.lang.String name,
int start,
int end)
Constructor which sets the Class number and name, as well as the first and last Section number. |
|
RogetClass(int num,
java.lang.String strClassNum,
java.lang.String strClassName)
Constructor which sets the Class number, Class number in string format and Class name, while parsing the strings for the Class number and name. |
|
RogetClass(int num,
java.lang.String snum,
java.lang.String name,
int start,
int end)
onstructor which sets the Class number, Class number in string format, Class name, as well as the first and last Section number. |
|
RogetClass(int num,
java.lang.String snum,
java.lang.String name,
java.lang.String subClass)
Constructor which sets the Class number, Class number in string format, Class and Sub-class name. |
|
RogetClass(int num,
java.lang.String snum,
java.lang.String name,
java.lang.String subClass,
int start,
int end)
Constructor which sets the Class number, Class number in string format, Class name, Sub-class name as well as the first and last Section number. |
Method Summary | |
---|---|
void |
addSection(Section section)
Adds a Section to this RogetClass. |
java.lang.String |
getClassName()
Returns the name of this RogetClass. |
int |
getClassNum()
Returns the number of this RogetClass. |
int |
getSectionEnd()
Returns the number of the last section of this RogetClass. |
java.util.ArrayList<Section> |
getSectionList()
Returns the array of Section objects in this RogetClass. |
int |
getSectionStart()
Returns the number of the first section of this RogetClass. |
java.lang.String |
getStrClassNum()
Returns the number of this RogetClass in string format. |
java.lang.String |
getSubClassName()
Returns the Sub-class name of this RogetClass. |
int |
headCount()
Returns the number of Heads of this RogetClass. |
void |
print()
Prints the contents of this RogetClass to the standard output. |
int |
sectionCount()
Returns the number of Sections of this RogetClass. |
void |
setClassName(java.lang.String name)
Sets the name of this RogetClass. |
void |
setClassNum(int num)
Sets the number of this RogetClass. |
void |
setSectionEnd(int end)
Sets the number of the last section of this RogetClass. |
void |
setSectionStart(int start)
Sets the number of the first section of this RogetClass. |
void |
setStrClassNum(java.lang.String snum)
Sets the number of this RogetClass in string format. |
void |
setSubClassName(java.lang.String subClass)
Sets the Sub-class name of this RogetClass. |
java.lang.String |
toString()
Converts to a string representation the RogetClass object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RogetClass()
public RogetClass(int num, java.lang.String name)
num
- name
- public RogetClass(int num, java.lang.String snum, java.lang.String name, java.lang.String subClass)
num
- snum
- name
- subClass
- public RogetClass(int num, java.lang.String name, int start, int end)
num
- name
- start
- end
- public RogetClass(int num, java.lang.String snum, java.lang.String name, int start, int end)
num
- snum
- name
- start
- end
- public RogetClass(int num, java.lang.String snum, java.lang.String name, java.lang.String subClass, int start, int end)
num
- snum
- name
- subClass
- start
- end
- public RogetClass(int num, java.lang.String strClassNum, java.lang.String strClassName)
^classNumber>#^i>#Class one #^/i>#^/classNumber>
^classTitle>#^i>#Abstract Relations #^/i>#^/classTitle>
num
- strClassNum
- strClassName
- Method Detail |
---|
public int getClassNum()
public void setClassNum(int num)
num
- public java.lang.String getStrClassNum()
public void setStrClassNum(java.lang.String snum)
snum
- public java.lang.String getClassName()
public void setClassName(java.lang.String name)
name
- public java.lang.String getSubClassName()
public void setSubClassName(java.lang.String subClass)
subClass
- public int getSectionStart()
public void setSectionStart(int start)
start
- public int getSectionEnd()
public void setSectionEnd(int end)
end
- public void addSection(Section section)
section
- public java.util.ArrayList<Section> getSectionList()
public int sectionCount()
public int headCount()
public java.lang.String toString()
toString
in class java.lang.Object
public void print()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |