org.pf.tools.cda.xpi
Class PluginConfiguration

java.lang.Object
  extended by org.pf.tools.cda.xpi.PluginConfiguration

public class PluginConfiguration
extends java.lang.Object

This is the container class for generic plugin configuration. It allows to provide an arbitrary number of key/value pairs where the keys must be strings and the values can be any object.
All keys are case-sensitive.

Version:
1.0
Author:
M.Duchrow

Constructor Summary
PluginConfiguration()
          Initialize the new instance with default values.
 
Method Summary
 java.lang.Object get(java.lang.String key)
          Returns the configuration object stored under the specified key or null if the key is unknown.
 java.lang.String[] getKeys()
          Returns an array of all keys currently available in the configuration.
 void set(java.lang.String key, java.lang.Object value)
          Stores the given configuration object under the specified key.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginConfiguration

public PluginConfiguration()
Initialize the new instance with default values.

Method Detail

get

public java.lang.Object get(java.lang.String key)
Returns the configuration object stored under the specified key or null if the key is unknown.


set

public void set(java.lang.String key,
                java.lang.Object value)
Stores the given configuration object under the specified key. If the provided value is null then an existing entry will be removed.


getKeys

public java.lang.String[] getKeys()
Returns an array of all keys currently available in the configuration.

Returns:
An array of keys (never null)