|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcckit.util.ConfigParametersBasedConfigData
public class ConfigParametersBasedConfigData
An implementation of ConfigData
based on two instances of
ConfigParameters
. The second one serves as a set of
default parameters. It will be used if the first one has not the requested
key-value pair.
Constructor Summary | |
---|---|
ConfigParametersBasedConfigData(ConfigParameters config,
ConfigParameters defaultConfig)
Creates an instance. |
Method Summary | |
---|---|
String |
get(String key)
Returns the value associated with this key. |
String |
getFullKey(String key)
Returns the full key. |
ConfigData |
getNode(String key)
Returns the ConfigData object associated with this key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigParametersBasedConfigData(ConfigParameters config, ConfigParameters defaultConfig)
config
- A set of key-value pairs.defaultConfig
- The default set of key-value pairs.Method Detail |
---|
public String getFullKey(String key)
getFullKey
in interface ConfigData
key
- A (relative) key. null is not allowed.
public String get(String key)
get
in interface ConfigData
key
- The relative key. null is not allowed.
public ConfigData getNode(String key)
getNode
in interface ConfigData
key
- The relative key. null is not allowed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |