|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.jomc.util.Section
public class Section
Section of text.
| Field Summary | |
|---|---|
private String |
endingLine
Line marking the end of this section. |
private StringBuilder |
headContent
The parsed head content of this section. |
private int |
mode
The current parsing mode. |
(package private) static int |
MODE_HEAD
Constant for the mode during parsing the head content of a section. |
(package private) static int |
MODE_TAIL
Constant for the mode during parsing the tail content of a section. |
private String |
name
The name of this section. |
private List<Section> |
sections
The child sections of this section. |
private String |
startingLine
Line marking the start of this section. |
private StringBuilder |
tailContent
The parsed tail content of this section. |
| Constructor Summary | |
|---|---|
Section()
Creates a new Section instance. |
|
| Method Summary | |
|---|---|
String |
getEndingLine()
Gets the line marking the end of this section. |
StringBuilder |
getHeadContent()
Gets the content of this section preceding any child section content. |
(package private) int |
getMode()
Gets the parsing mode of the instance. |
String |
getName()
Gets the name of this section. |
List<Section> |
getSections()
Gets the child sections of this section. |
String |
getStartingLine()
Gets the line marking the start of this section. |
StringBuilder |
getTailContent()
Gets the content of this section succeeding any child section content. |
void |
setEndingLine(String value)
Sets the line marking the end of this section. |
(package private) void |
setMode(int value)
Sets the parsing mode of the instance. |
void |
setName(String value)
Sets the name of this section. |
void |
setStartingLine(String value)
Sets the line marking the start of this section. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final int MODE_HEAD
static final int MODE_TAIL
private int mode
private String name
private StringBuilder headContent
private StringBuilder tailContent
private String startingLine
private String endingLine
private List<Section> sections
| Constructor Detail |
|---|
public Section()
Section instance.
| Method Detail |
|---|
public String getName()
null.public void setName(String value)
value - The new name of this section or null.public String getStartingLine()
public void setStartingLine(String value)
value - The new line marking the start of this section.public String getEndingLine()
public void setEndingLine(String value)
value - The new line marking the end of this section.public StringBuilder getHeadContent()
public StringBuilder getTailContent()
public List<Section> getSections()
int getMode()
MODE_HEAD,
MODE_TAILvoid setMode(int value)
value - The new parsing mode of the instance.MODE_HEAD,
MODE_TAIL
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||