|
||||||||||
| 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 Map<Integer,List<Section>> |
children
The child sections of this section. |
private Map<Integer,String> |
endingLine
Line marking the end of this section. |
private Map<Integer,StringBuilder> |
headContent
The parsed head content of this section. |
private int |
level
The level of this section. |
private int |
mode
The current parsing mode. |
(package private) static int |
MODE_HEAD
Constant for the mode when parsing the head of a section. |
(package private) static int |
MODE_TAIL
Constant for the mode when parsing the tail of a section. |
private String |
name
The name of this section. |
private Map<Integer,String> |
startingLine
Line marking the start of this section. |
private Map<Integer,StringBuilder> |
tailContent
The parsed tail content of this section. |
| Constructor Summary | |
|---|---|
Section()
Creates a new Section instance. |
|
| Method Summary | |
|---|---|
(package private) void |
addContent(String content)
Adds content to the section. |
private static List<Section> |
collectSections(Section section,
List<Section> sections)
Collects sections recursively. |
(package private) List<Section> |
getChildren()
Gets the child sections of this section. |
String |
getEndingLine()
Gets the line marking the end of this section. |
StringBuilder |
getHeadContent()
Gets the parsed head content of this section. |
(package private) int |
getLevel()
Gets the level of the section. |
(package private) int |
getMode()
Gets the mode of the section. |
String |
getName()
Gets the name of this section. |
List<Section> |
getSections()
Gets all sections recursively. |
String |
getStartingLine()
Gets the line marking the start of this section. |
StringBuilder |
getTailContent()
Gets the parsed tail content of this section. |
void |
setEndingLine(String value)
Sets the line marking the end of this section. |
(package private) void |
setLevel(int value)
Sets the level of the section. |
(package private) void |
setMode(int value)
Sets the mode of the section. |
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 |
|---|
private String name
private int level
private Map<Integer,StringBuilder> headContent
private Map<Integer,StringBuilder> tailContent
private Map<Integer,String> startingLine
private Map<Integer,String> endingLine
private Map<Integer,List<Section>> children
static final int MODE_HEAD
static final int MODE_TAIL
private int mode
| Constructor Detail |
|---|
public Section()
Section instance.
| Method Detail |
|---|
public String getName()
public void setName(String value)
value - The name of this section.public String getStartingLine()
public void setStartingLine(String value)
value - The line marking the start of this section.public String getEndingLine()
public void setEndingLine(String value)
value - The line marking the end of this section.public StringBuilder getHeadContent()
public StringBuilder getTailContent()
public List<Section> getSections()
int getLevel()
void setLevel(int value)
value - The new level of the section.int getMode()
void setMode(int value)
value - The new mode of the section.void addContent(String content)
content - The content to add.getMode(),
getLevel()List<Section> getChildren()
private static List<Section> collectSections(Section section,
List<Section> sections)
section - A section to collect child sections of.sections - A list to add any child sections to.
sections with any child sections of section added.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||