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 Type
    Method
    Description
    get(String key)
    Returns the value associated with this key.
    Returns the full key.
    Returns the ConfigData object associated with this key.
  • Method Details

    • getFullKey

      String getFullKey(String key)
      Returns the full key.
      Parameters:
      key - A (relative) key. null is not allowed.
      Returns:
      the full key including path.
    • get

      String get(String key)
      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

      ConfigData getNode(String key)
      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.