org.ini4j
Class IniPreferences.SectionPreferences

Object
  extended by Preferences
      extended by AbstractPreferences
          extended by org.ini4j.IniPreferences.SectionPreferences
Enclosing class:
IniPreferences

protected class IniPreferences.SectionPreferences
extends AbstractPreferences


Field Summary
 
Fields inherited from class AbstractPreferences
lock, newNode
 
Fields inherited from class Preferences
MAX_KEY_LENGTH, MAX_NAME_LENGTH, MAX_VALUE_LENGTH
 
Method Summary
protected  String[] childrenNamesSpi()
          Implements the childrenNamesSpi method as per the specification in AbstractPreferences.childrenNamesSpi().
protected  IniPreferences.SectionPreferences childSpi(String name)
          Implements the childSpi method as per the specification in AbstractPreferences.childSpi(String).
 void flush()
          Implements the flush method as per the specification in Preferences.flush().
protected  void flushSpi()
          Implements the flushSpi method as per the specification in AbstractPreferences.flushSpi().
protected  String getSpi(String key)
          Implements the getSpi method as per the specification in AbstractPreferences.getSpi(String).
protected  String[] keysSpi()
          Implements the keysSpi method as per the specification in AbstractPreferences.keysSpi().
protected  void putSpi(String key, String value)
          Implements the putSpi method as per the specification in AbstractPreferences.putSpi(String,String).
protected  void removeNodeSpi()
          Implements the removeNodeSpi method as per the specification in AbstractPreferences.removeNodeSpi().
protected  void removeSpi(String key)
          Implements the removeSpi method as per the specification in AbstractPreferences.removeSpi(String).
 void sync()
          Implements the sync method as per the specification in Preferences.sync().
protected  void syncSpi()
          Implements the syncSpi method as per the specification in AbstractPreferences.syncSpi().
 
Methods inherited from class AbstractPreferences
absolutePath, addNodeChangeListener, addPreferenceChangeListener, cachedChildren, childrenNames, clear, exportNode, exportSubtree, get, getBoolean, getByteArray, getChild, getDouble, getFloat, getInt, getLong, isRemoved, isUserNode, keys, name, node, nodeExists, parent, put, putBoolean, putByteArray, putDouble, putFloat, putInt, putLong, remove, removeNode, removeNodeChangeListener, removePreferenceChangeListener, toString
 
Methods inherited from class Preferences
importPreferences, systemNodeForPackage, systemRoot, userNodeForPackage, userRoot
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

flush

public void flush()
           throws BackingStoreException
Implements the flush method as per the specification in Preferences.flush(). This implementation just call parent's flush() method.

Overrides:
flush in class AbstractPreferences
Throws:
BackingStoreException - if this operation cannot be completed due to a failure in the backing store, or inability to communicate with it.

sync

public void sync()
          throws BackingStoreException
Implements the sync method as per the specification in Preferences.sync(). This implementation just call parent's sync() method.

Overrides:
sync in class AbstractPreferences
Throws:
BackingStoreException - if this operation cannot be completed due to a failure in the backing store, or inability to communicate with it.

getSpi

protected String getSpi(String key)
Implements the getSpi method as per the specification in AbstractPreferences.getSpi(String).

Specified by:
getSpi in class AbstractPreferences
Parameters:
key - key to getvalue for
Returns:
if the value associated with the specified key at this preference node, or null if there is no association for this key, or the association cannot be determined at this time.

childrenNamesSpi

protected String[] childrenNamesSpi()
                             throws BackingStoreException
Implements the childrenNamesSpi method as per the specification in AbstractPreferences.childrenNamesSpi(). This implementation allways returns an empty array.

Specified by:
childrenNamesSpi in class AbstractPreferences
Returns:
an emty array.
Throws:
BackingStoreException - if this operation cannot be completed due to a failure in the backing store, or inability to communicate with it.

childSpi

protected IniPreferences.SectionPreferences childSpi(String name)
                                              throws UnsupportedOperationException
Implements the childSpi method as per the specification in AbstractPreferences.childSpi(String). This implementation doesn't support this operation.

Specified by:
childSpi in class AbstractPreferences
Parameters:
name - child name
Returns:
child node
Throws:
UnsupportedOperationException - this implementation allways throws this exception

flushSpi

protected void flushSpi()
                 throws BackingStoreException
Implements the flushSpi method as per the specification in AbstractPreferences.flushSpi(). This implementation does nothing.

Specified by:
flushSpi in class AbstractPreferences
Throws:
BackingStoreException - if this operation cannot be completed due to a failure in the backing store, or inability to communicate with it.

keysSpi

protected String[] keysSpi()
                    throws BackingStoreException
Implements the keysSpi method as per the specification in AbstractPreferences.keysSpi().

Specified by:
keysSpi in class AbstractPreferences
Returns:
an array of the keys that have an associated value in this preference node.
Throws:
BackingStoreException - if this operation cannot be completed due to a failure in the backing store, or inability to communicate with it.

putSpi

protected void putSpi(String key,
                      String value)
Implements the putSpi method as per the specification in AbstractPreferences.putSpi(String,String).

Specified by:
putSpi in class AbstractPreferences
Parameters:
key - key to set value for
value - new value of key

removeNodeSpi

protected void removeNodeSpi()
                      throws BackingStoreException
Implements the removeNodeSpi method as per the specification in AbstractPreferences.removeNodeSpi().

Specified by:
removeNodeSpi in class AbstractPreferences
Throws:
BackingStoreException - if this operation cannot be completed due to a failure in the backing store, or inability to communicate with it.

removeSpi

protected void removeSpi(String key)
Implements the removeSpi method as per the specification in AbstractPreferences.removeSpi(String).

Specified by:
removeSpi in class AbstractPreferences
Parameters:
key - key to remove

syncSpi

protected void syncSpi()
                throws BackingStoreException
Implements the syncSpi method as per the specification in AbstractPreferences.syncSpi(). This implementation does nothing.

Specified by:
syncSpi in class AbstractPreferences
Throws:
BackingStoreException - if this operation cannot be completed due to a failure in the backing store, or inability to communicate with it.


Copyright © 2011. All Rights Reserved.