Package jcckit.util
Interface ConfigData
- All Known Implementing Classes:
AppletBasedConfigData
,ConfigParametersBasedConfigData
,FlatConfigData
,PropertiesBasedConfigData
public interface ConfigData
Interface for hierarchically managed key-value pairs. The key is
always a string which contains any kind of printable character except
'/', '=', ':', and whitespace characters like ' ' and '\\t'.
The value is either a string or a ConfigData object.
This interface will be used by ConfigParameters
in accordance
with the Strategy design pattern.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value associated with this key.getFullKey
(String key) Returns the full key.Returns the ConfigData object associated with this key.
-
Method Details
-
getFullKey
Returns the full key.- Parameters:
key
- A (relative) key. null is not allowed.- Returns:
- the full key including path.
-
get
Returns the value associated with this key.- Parameters:
key
- The relative key. null is not allowed.- Returns:
- the associated value. Will be null if no value exists for key.
-
getNode
Returns the ConfigData object associated with this key.- Parameters:
key
- The relative key. null is not allowed.- Returns:
- the associated value. Will never return null. Instead an empty ConfigData is returned.
-