uk.co.jcp.util.properties
Interface WritablePropertySource

All Superinterfaces:
PropertySource, java.io.Serializable

public interface WritablePropertySource
extends PropertySource

Interface for PropertySources, e.g. INI file, Trustbase properties, Database etc that can be saved


Method Summary
 void addSection(java.lang.String sectionName, PropertySection section)
          adds a section
 void save()
          Save the current state of the properties
 
Methods inherited from interface uk.co.jcp.util.properties.PropertySource
containsSection, getKeys, getPropertyValues, getSectionNames, load, setProperty
 

Method Detail

save

public void save()
          throws PropertyException
Save the current state of the properties

addSection

public void addSection(java.lang.String sectionName,
                       PropertySection section)
                throws SectionAlreadyDefinedException
adds a section
Throws:
SectionAlreadyDefinedException - thrown if section is already present.