|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecterland.util.ParameterStorageTree
public class ParameterStorageTree
Get parameters from an XML document
Constructor Summary | |
---|---|
ParameterStorageTree(StorageInterface storage,
StorageFactoryInterface subStorageFactory)
Create an instance which accesses data in the specified storage |
Method Summary | |
---|---|
void |
delParameter(String name)
Delete a parameter |
String |
getParameter(String str)
Get a parameter value |
StorageInterface |
getParameterAsStorage(String name)
Retreives the parameter as a StorageInterface object instead of a value Observe that this is a new StorageInterface object and will not be related to any of your other StorageInterface objects |
void |
setParameter(String name,
String value)
Set a parameter value |
void |
setParameterAsStorage(String name,
StorageInterface value)
Sets the parameter as a StorageInterface object instead of a value Observe that this is a new StorageInterface object must have been retreived with the ParameterValueStorageExInterface.getParameterAsStorage(String) method |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ParameterStorageTree(StorageInterface storage, StorageFactoryInterface subStorageFactory)
storage
- The storage objectsubStorageFactory
- A storage factory that should be used when creating new sub storagesMethod Detail |
---|
public String getParameter(String str)
ParameterValueStorageInterface
getParameter
in interface ParameterValueStorageInterface
str
- The name of the parameter
public void setParameter(String name, String value)
ParameterValueStorageInterface
setParameter
in interface ParameterValueStorageInterface
name
- The name of the parametervalue
- The value of the parameterpublic void delParameter(String name)
ParameterValueStorageInterface
delParameter
in interface ParameterValueStorageInterface
name
- The name of the parameterpublic void setParameterAsStorage(String name, StorageInterface value)
ParameterValueStorageExInterface
ParameterValueStorageExInterface.getParameterAsStorage(String)
method
setParameterAsStorage
in interface ParameterValueStorageExInterface
name
- The name of the parameter to setvalue
- The value as a StorageInterface objectpublic StorageInterface getParameterAsStorage(String name)
ParameterValueStorageExInterface
getParameterAsStorage
in interface ParameterValueStorageExInterface
name
- The name of the parameter to retreive
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |