|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jostraca.section.BasicSection
Basic implementation of Section interface.
| Field Summary | |
static java.lang.String |
CN
|
static int |
TEXT_BUFFER_INIT_SIZE
|
| Fields inherited from interface org.jostraca.section.Section |
DEFAULT_NAME, MN_append, MN_prepend, NAME_body, NAME_declare, NAME_documentation, NAME_init |
| Constructor Summary | |
BasicSection(java.lang.String pName)
Construction requires name. |
|
| Method Summary | |
void |
append(java.lang.String pText)
Append content to a section. |
void |
clear()
Clear section content. |
boolean |
equals(java.lang.Object pObject)
Test for equality |
java.lang.String |
getContent()
Get section content. |
java.lang.String |
getName()
Get name of section. |
boolean |
isEmpty()
True if Section content is empty String. |
void |
prepend(java.lang.String pText)
prepend content to a section. |
void |
setContent(java.lang.String pContent)
Set content of section. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String CN
public static final int TEXT_BUFFER_INIT_SIZE
| Constructor Detail |
public BasicSection(java.lang.String pName)
pName - Name of section. If null or "", use DEFAULT_NAME.| Method Detail |
public void append(java.lang.String pText)
Section
append in interface SectionpText - content to append (if null, then "")Sectionpublic void prepend(java.lang.String pText)
Section
prepend in interface SectionpText - content to prepend (if null, then "")Sectionpublic void clear()
Section
clear in interface SectionSectionpublic java.lang.String getContent()
Section
getContent in interface SectionSectionpublic void setContent(java.lang.String pContent)
Section
setContent in interface SectionpContent - full content (if null, then "")Sectionpublic java.lang.String getName()
Section
getName in interface SectionSectionpublic boolean isEmpty()
Section
isEmpty in interface SectionSectionpublic boolean equals(java.lang.Object pObject)
Section
equals in interface SectionSectionpublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||