erland.util
Class ParameterStorageStringEx

java.lang.Object
  extended by erland.util.ParameterStorageString
      extended by erland.util.ParameterStorageStringEx
All Implemented Interfaces:
ParameterValueStorageExInterface, ParameterValueStorageInterface
Direct Known Subclasses:
ParameterStorageGroupWithId

public class ParameterStorageStringEx
extends ParameterStorageString

Get, set or delete parameters stored in a string

Author:
Erland Isaksson

Constructor Summary
ParameterStorageStringEx(StorageInterface primaryStorage, StorageInterface secondaryStorage)
          Createa a storage object
ParameterStorageStringEx(StorageInterface primaryStorage, StorageInterface secondaryStorage, String documentName)
          Creates a storage object
 
Method Summary
protected  StorageInterface getNodeAsStorage(XMLNode node, String name)
          Overridden so it returns the node itself
protected  void setNodeAsStorage(XMLNode node, String name, StorageInterface value)
          Overridden so it sets the node itself
 
Methods inherited from class erland.util.ParameterStorageString
addChild, addChildAsStorage, delParameter, delSpecialParameterInData, getParameter, getParameterAsStorage, getSpecialParameterAsStorageInData, getSpecialParameterInData, init, isSpecialHandled, setParameter, setParameterAsStorage, setSpecialParameterAsStorageInData, setSpecialParameterInData, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParameterStorageStringEx

public ParameterStorageStringEx(StorageInterface primaryStorage,
                                StorageInterface secondaryStorage)
Createa a storage object

Parameters:
primaryStorage - The storage object which the parameters should be read/write from/to
secondaryStorage - The storage object which the parameters should be read from if they don't exist in the primaryStorage

ParameterStorageStringEx

public ParameterStorageStringEx(StorageInterface primaryStorage,
                                StorageInterface secondaryStorage,
                                String documentName)
Creates a storage object

Parameters:
primaryStorage - The storage object which the parameters should be read/write from/to
secondaryStorage - The storage object which the parameters should be read from if they don't exist in the primaryStorage
documentName - The name of the section in the storage where parameters are stored
Method Detail

getNodeAsStorage

protected StorageInterface getNodeAsStorage(XMLNode node,
                                            String name)
Overridden so it returns the node itself

Overrides:
getNodeAsStorage in class ParameterStorageString
Parameters:
node - The node that matched the parameter name
name - The parameter name that was searched for
Returns:
The storage for the node

setNodeAsStorage

protected void setNodeAsStorage(XMLNode node,
                                String name,
                                StorageInterface value)
Overridden so it sets the node itself

Overrides:
setNodeAsStorage in class ParameterStorageString
Parameters:
node - The node that matched the parameter name
name - The parameter name that was searched for
value - The value to set


Copyright © 2003-2005 Erland Isaksson. All Rights Reserved.