|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jcckit.util.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 | |
java.lang.String |
get(java.lang.String key)
Returns the value associated with this key. |
java.lang.String |
getFullKey(java.lang.String key)
Returns the full key. |
ConfigData |
getNode(java.lang.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 java.lang.String getFullKey(java.lang.String key)
getFullKey
in interface ConfigData
key
- A (relative) key. null is not allowed.
public java.lang.String get(java.lang.String key)
get
in interface ConfigData
key
- The relative key. null is not allowed.
public ConfigData getNode(java.lang.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 |