|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecterland.util.ParameterStorageString
erland.util.ParameterStorageGroup
public class ParameterStorageGroup
Handles storing of groupdata
Constructor Summary | |
---|---|
ParameterStorageGroup(StorageInterface primaryStorage,
StorageInterface secondaryStorage,
String documentName,
String groupPrefix)
Creates a new object |
Method Summary | |
---|---|
protected void |
delSpecialParameterInData(XMLNode data,
String name)
Delets a parameter in the XMLNode tree specified, this method is only called if ParameterStorageString.isSpecialHandled(String) returns true |
protected XMLNode |
findGroupNode(XMLNode data,
String name)
Find a specific group node in the XMLNode tree |
protected StorageInterface |
getSpecialParameterAsStorageInData(XMLNode data,
String name)
Gets a storage object for a parameter from the XMLNode tree specified, this method is only called if ParameterStorageString.isSpecialHandled(String) returns true |
protected String |
getSpecialParameterInData(XMLNode data,
String name)
Gets the parameter value for a parameter from the XMLNode tree specified, this method is only called if ParameterStorageString.isSpecialHandled(String) returns true |
protected boolean |
isSpecialHandled(String name)
Check if this parameter should be special handled, will be autmatically called when a parameter is accessed. |
protected void |
setSpecialParameterAsStorageInData(XMLNode data,
String name,
StorageInterface value)
Sets the parameter value for a parameter in the XMLNode tree specified, this method is only called if ParameterStorageString.isSpecialHandled(String) returns true
The value is specified as a StorageInterface object |
protected void |
setSpecialParameterInData(XMLNode data,
String name,
String value)
Sets the parameter value for a parameter in the XMLNode tree specified, this method is only called if ParameterStorageString.isSpecialHandled(String) returns true |
Methods inherited from class erland.util.ParameterStorageString |
---|
addChild, addChildAsStorage, delParameter, getNodeAsStorage, getParameter, getParameterAsStorage, init, setNodeAsStorage, setParameter, setParameterAsStorage, setValue, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ParameterStorageGroup(StorageInterface primaryStorage, StorageInterface secondaryStorage, String documentName, String groupPrefix)
primaryStorage
- The storage object which the parameters should be read/write from/tosecondaryStorage
- The storage object which the parameters should be read from if they don't exist in the primaryStoragedocumentName
- Name of the documentMethod Detail |
---|
protected String getSpecialParameterInData(XMLNode data, String name)
ParameterStorageString
ParameterStorageString.isSpecialHandled(String)
returns true
getSpecialParameterInData
in class ParameterStorageString
data
- The XMLNode tree to search for the parameter inname
- The parameter name of the parameter
protected StorageInterface getSpecialParameterAsStorageInData(XMLNode data, String name)
ParameterStorageString
ParameterStorageString.isSpecialHandled(String)
returns true
getSpecialParameterAsStorageInData
in class ParameterStorageString
data
- The XMLNode tree to search for the parameter inname
- The parameter name of the parameter
protected void setSpecialParameterAsStorageInData(XMLNode data, String name, StorageInterface value)
ParameterStorageString
ParameterStorageString.isSpecialHandled(String)
returns true
The value is specified as a StorageInterface object
setSpecialParameterAsStorageInData
in class ParameterStorageString
data
- The XMLNode tree to set the parameter inname
- The parameter name of the parametervalue
- The parameter value of the parameterprotected boolean isSpecialHandled(String name)
ParameterStorageString
isSpecialHandled
in class ParameterStorageString
name
- The parameter name
true - This parameter should be special handled,then one ofParameterStorageString.getSpecialParameterInData(erland.util.XMLNode,String)
,ParameterStorageString.setSpecialParameterInData(erland.util.XMLNode,String,String)
,ParameterStorageString.delSpecialParameterInData(erland.util.XMLNode,String)
, will be called to access the parameter
false - This parameter is handled in the normal way, one ofParameterStorageString.getParameter(String)
,ParameterStorageString.setParameter(String,String)
,ParameterStorageString.delParameter(String)
, will be called to access the parameter
protected void setSpecialParameterInData(XMLNode data, String name, String value)
ParameterStorageString
ParameterStorageString.isSpecialHandled(String)
returns true
setSpecialParameterInData
in class ParameterStorageString
data
- The XMLNode tree to set the parameter inname
- The parameter name of the parametervalue
- The parameter value of the parameterprotected void delSpecialParameterInData(XMLNode data, String name)
ParameterStorageString
ParameterStorageString.isSpecialHandled(String)
returns true
delSpecialParameterInData
in class ParameterStorageString
data
- The XMLNode tree to set the parameter inname
- The parameter name of the parameterprotected XMLNode findGroupNode(XMLNode data, String name)
data
- Main object for the XMLNode treename
- The group to find
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |