org.springframework.richclient.settings.xml
Class XmlSettings

java.lang.Object
  extended by org.springframework.richclient.settings.AbstractSettings
      extended by org.springframework.richclient.settings.xml.XmlSettings
All Implemented Interfaces:
Settings
Direct Known Subclasses:
RootXmlSettings

public class XmlSettings
extends AbstractSettings

Author:
Peter De Bruycker

Constructor Summary
XmlSettings(Element element)
           
XmlSettings(Settings parent, Element element)
           
 
Method Summary
 Element getElement()
           
 String[] getKeys()
          Returns the keys in this Settings.
protected  boolean internalContains(String key)
           
protected  Settings internalCreateChild(String key)
           
protected  String internalGet(String key)
          Return null if no value found for key
protected  String[] internalGetChildSettings()
          Should return the names of the child settings initially in this settings instance, i.e.
protected  void internalRemove(String key)
           
 void internalRemoveSettings()
           
protected  void internalSet(String key, String value)
           
 void load()
           
 void save()
           
 
Methods inherited from class org.springframework.richclient.settings.AbstractSettings
addPropertyChangeListener, addPropertyChangeListener, contains, getAllKeys, getBoolean, getChildSettings, getDefaultBoolean, getDefaultDouble, getDefaultFloat, getDefaultInt, getDefaultKeys, getDefaultLabeledEnum, getDefaultLong, getDefaultString, getDouble, getFloat, getInt, getLabeledEnum, getLong, getName, getParent, getSettings, getString, isDefault, isRoot, remove, removePropertyChangeListener, removePropertyChangeListener, removeSettings, setBoolean, setDefaultBoolean, setDefaultDouble, setDefaultFloat, setDefaultInt, setDefaultLabeledEnum, setDefaultLong, setDefaultString, setDouble, setFloat, setInt, setLabeledEnum, setLong, setString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlSettings

public XmlSettings(Settings parent,
                   Element element)

XmlSettings

public XmlSettings(Element element)
Method Detail

internalCreateChild

protected Settings internalCreateChild(String key)
Specified by:
internalCreateChild in class AbstractSettings

internalContains

protected boolean internalContains(String key)
Specified by:
internalContains in class AbstractSettings

internalSet

protected void internalSet(String key,
                           String value)
Specified by:
internalSet in class AbstractSettings

internalGet

protected String internalGet(String key)
Description copied from class: AbstractSettings
Return null if no value found for key

Specified by:
internalGet in class AbstractSettings

getKeys

public String[] getKeys()
Description copied from interface: Settings
Returns the keys in this Settings.

Returns:
the keys

save

public void save()
          throws IOException
Throws:
IOException

load

public void load()
          throws IOException
Throws:
IOException

internalRemove

protected void internalRemove(String key)
Specified by:
internalRemove in class AbstractSettings

getElement

public Element getElement()

internalGetChildSettings

protected String[] internalGetChildSettings()
Description copied from class: AbstractSettings
Should return the names of the child settings initially in this settings instance, i.e. the children that were stored in the backend.

Specified by:
internalGetChildSettings in class AbstractSettings
Returns:
the names of the child settings

internalRemoveSettings

public void internalRemoveSettings()
Specified by:
internalRemoveSettings in class AbstractSettings


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.