org.jostraca.section
Class SectionSet

java.lang.Object
  extended byorg.jostraca.section.SectionSet

public class SectionSet
extends java.lang.Object

Manage a set of Sections.


Field Summary
static java.lang.String CN
           
 
Constructor Summary
SectionSet()
           
 
Method Summary
 void addSection(Section pSection)
          Add a Section.
 void appendToSection(java.lang.String pSectionName, java.lang.String pContent)
          Append content to an existing Section.
 void clearAllSections()
          Clear all existing sections.
 void clearSection(java.lang.String pSectionName)
          Clear an existing Section.
 java.util.Enumeration enumerateSectionNames()
          Get an Enumeration of Section names
 java.util.Enumeration enumerateSections()
          Get an Enumeration of Sections
 boolean equals(java.lang.Object pObject)
           
 Section getSection(java.lang.String pSectionName)
          Get section.
 boolean hasSection(java.lang.String pSectionName)
          True if Section exists in set.
 boolean isEmptySection(java.lang.String pSectionName)
          True if section content is empty.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CN

public static final java.lang.String CN
Constructor Detail

SectionSet

public SectionSet()
Method Detail

addSection

public void addSection(Section pSection)
Add a Section. Overwrites existing Section of same name if it exists. If null, ignore.

Parameters:
pSection - Section to add

appendToSection

public void appendToSection(java.lang.String pSectionName,
                            java.lang.String pContent)
Append content to an existing Section. If Section does not exist, create new BasicSection.

Parameters:
pSectionName - name of Section to append to or create
pContent - content to append to Section

clearSection

public void clearSection(java.lang.String pSectionName)
Clear an existing Section. If Section does not exist, create new Section.

Parameters:
pSectionName - name of Section to clear

clearAllSections

public void clearAllSections()
Clear all existing sections.


getSection

public Section getSection(java.lang.String pSectionName)
Get section. Return empty BasicSection if unknown.

Parameters:
pSectionName - name of Section to get

hasSection

public boolean hasSection(java.lang.String pSectionName)
True if Section exists in set.

Parameters:
pSectionName - name of Section

isEmptySection

public boolean isEmptySection(java.lang.String pSectionName)
True if section content is empty.

Parameters:
pSectionName - name of Section

enumerateSections

public java.util.Enumeration enumerateSections()
Get an Enumeration of Sections


enumerateSectionNames

public java.util.Enumeration enumerateSectionNames()
Get an Enumeration of Section names


toString

public java.lang.String toString()

equals

public boolean equals(java.lang.Object pObject)


Copyright © 2000-2002 Richard Rodger