|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.site.elkb.Section
public class Section
Represents a Roget's Thesaurus Section. A Section is defined by the following attributes:
Constructor Summary | |
---|---|
Section()
Default constructor. |
|
Section(int number,
java.lang.String name)
Constructor which sets the Section number and name. |
|
Section(int number,
java.lang.String name,
int start,
int end)
Constructor which sets the Section number and name, as well as the number of the first and last Head. |
|
Section(int number,
java.lang.String strNum,
java.lang.String strName)
Constructor which sets the Section number, name, and Section number in string format and Class name, while parsing the strings for the Section number and name. |
Method Summary | |
---|---|
void |
addHeadInfo(HeadInfo head)
Adds a HeadInfo object to this Section. |
int |
getHeadEnd()
Returns the number of the last Head of this Section. |
java.util.ArrayList<HeadInfo> |
getHeadInfoList()
Returns the array of HeadInfo objects of this Section. |
int |
getHeadStart()
Returns the number of the first Head of this Section. |
java.lang.String |
getSectionName()
Returns the name of this Section. |
int |
getSectionNum()
Returns the number of this Section. |
java.lang.String |
getStrSectionNum()
Returns the number of this Section in string format. |
int |
headCount()
Returns the number of Heads in this Section. |
void |
print()
Prints the content of this Section to the standard output. |
void |
printHeadInfo()
Prints the information regarding the Heads contained in this Section to the standard output. |
void |
setHeadEnd(int end)
Sets the number of the last Head of this Section. |
void |
setHeadStart(int start)
Sets the number of the first Head of this Section. |
void |
setSectionName(java.lang.String name)
Sets the number of this Section in string format. |
void |
setSectionNum(int num)
Sets the number of this Section. |
void |
setStrSectionNum(java.lang.String snum)
Sets the number of this Section in string format. |
java.lang.String |
toString()
Converts to a string representation the Section object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Section()
public Section(int number, java.lang.String name)
number
- name
- public Section(int number, java.lang.String name, int start, int end)
number
- name
- start
- end
- public Section(int number, java.lang.String strNum, java.lang.String strName)
^sectionNumber>#Section one #^/sectionNumber>
^sectionTitle>#^size=-1>#^b>#Existence
#^/b>#^/size>#^/sectionTitle>
number
- strNum
- strName
- Method Detail |
---|
public int getSectionNum()
public void setSectionNum(int num)
num
- public java.lang.String getStrSectionNum()
public void setStrSectionNum(java.lang.String snum)
snum
- public java.lang.String getSectionName()
public void setSectionName(java.lang.String name)
name
- public int getHeadStart()
public void setHeadStart(int start)
start
- public int getHeadEnd()
public void setHeadEnd(int end)
end
- public void addHeadInfo(HeadInfo head)
head
- public java.util.ArrayList<HeadInfo> getHeadInfoList()
public int headCount()
public java.lang.String toString()
toString
in class java.lang.Object
public void print()
public void printHeadInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |