uk.co.jcp.util.properties
Interface JCPProperties

All Superinterfaces:
PropertySection, java.io.Serializable

public interface JCPProperties
extends PropertySection

Class to embody a set of properties in easy to access form such that properties can be retrieved as the desired type


Method Summary
 void addSection(java.lang.String sectionName, PropertySection section)
          Adds a section to this properties object.
 PropertySection getSection(java.lang.String sectionName)
          Get a Properties object representing the named section
 java.util.Enumeration getSections()
          Return an Emueration of the section names that this property resource contains
 void save()
          Save the properties to the source they came from
 void setParentProperties(JCPProperties jcp)
          set parent properties for this object.
 
Methods inherited from interface uk.co.jcp.util.properties.PropertySection
getBlobProperty, getBlobProperty, getBooleanProperty, getBooleanProperty, getDateProperty, getDateProperty, getDateProperty, getDateProperty, getDoubleProperty, getDoubleProperty, getEnumeratedProperty, getFloatProperty, getFloatProperty, getIntProperty, getIntProperty, getKeys, getLongProperty, getLongProperty, getObjectProperty, getObjectProperty, getSectionName, getStringProperty, getStringProperty, setBooleanProperty, setDateProperty, setDateProperty, setDoubleProperty, setEnumeratedProperty, setFloatProperty, setIntProperty, setLongProperty, setObjectProperty, setStringProperty
 

Method Detail

getSections

public java.util.Enumeration getSections()
                                  throws SectionNotFoundException
Return an Emueration of the section names that this property resource contains
Returns:
an Enumeration of Strings
Throws:
SectionNotFoundException - if no sections are present

getSection

public PropertySection getSection(java.lang.String sectionName)
                           throws SectionNotFoundException
Get a Properties object representing the named section
Returns:
the properties contained in the named section
Throws:
SectionNotFoundException - if the section is not present

addSection

public void addSection(java.lang.String sectionName,
                       PropertySection section)
                throws PropertyException
Adds a section to this properties object.
Throws:
SectionAlreadyDefined - if the section is already present.

save

public void save()
          throws PropertyException
Save the properties to the source they came from
Throws:
PropertyException - if the properties could not be saved

setParentProperties

public void setParentProperties(JCPProperties jcp)
set parent properties for this object.