org.jomc.util
Class Section

Package class diagram package Section
java.lang.Object
  extended by org.jomc.util.Section

public class Section
extends Object

Section of text.

Version:
$Id: Section.java 891 2009-11-02 03:40:00Z schulte2005 $
Author:
Christian Schulte

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.
 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.
 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
 

Constructor Detail

Section

public Section()
Creates a new Section instance.

Method Detail

getName

public String getName()
Gets the name of this section.

Returns:
The name of this section or null.

setName

public void setName(String value)
Sets the name of this section.

Parameters:
value - The new name of this section or null.

getStartingLine

public String getStartingLine()
Gets the line marking the start of this section.

Returns:
The line marking the start of this section.

setStartingLine

public void setStartingLine(String value)
Sets the line marking the start of this section.

Parameters:
value - The new line marking the start of this section.

getEndingLine

public String getEndingLine()
Gets the line marking the end of this section.

Returns:
The line marking the end of this section.

setEndingLine

public void setEndingLine(String value)
Sets the line marking the end of this section.

Parameters:
value - The new line marking the end of this section.

getHeadContent

public StringBuilder getHeadContent()
Gets the content of this section preceding any child section content.

Returns:
The content of this section preceding any child section content.

getTailContent

public StringBuilder getTailContent()
Gets the content of this section succeeding any child section content.

Returns:
The content of this section succeeding any child section content.

getSections

public List<Section> getSections()
Gets the child sections of this section.

Returns:
A list of child sections of this section.


Copyright © 2005-2009 The JOMC Project. All Rights Reserved.