Method Summary |
|
public void | addConfiguration(Configuration config) |
public void | addProperty(String key, Object token) |
public void | clear() |
public void | clearProperty(String key) Clear a property in the configuration. |
public boolean | containsKey(String key) |
public boolean | getBoolean(String key) Get a boolean associated with the given configuration key.
Parameters: key - The configuration key. |
public boolean | getBoolean(String key, boolean defaultValue) Get a boolean associated with the given configuration key.
Parameters: key - The configuration key. Parameters: defaultValue - The default value. |
public Boolean | getBoolean(String key, Boolean defaultValue) Get a boolean associated with the given configuration key.
Parameters: key - The configuration key. Parameters: defaultValue - The default value. |
public byte | getByte(String key) Get a byte associated with the given configuration key.
Parameters: key - The configuration key. |
public byte | getByte(String key, byte defaultValue) Get a byte associated with the given configuration key.
Parameters: key - The configuration key. Parameters: defaultValue - The default value. |
public Byte | getByte(String key, Byte defaultValue) Get a byte associated with the given configuration key.
Parameters: key - The configuration key. Parameters: defaultValue - The default value. |
public Configuration | getConfiguration(int index) |
public double | getDouble(String key) Get a double associated with the given configuration key.
Parameters: key - The configuration key. |
public double | getDouble(String key, double defaultValue) Get a double associated with the given configuration key.
Parameters: key - The configuration key. Parameters: defaultValue - The default value. |
public Double | getDouble(String key, Double defaultValue) Get a double associated with the given configuration key.
Parameters: key - The configuration key. Parameters: defaultValue - The default value. |
public float | getFloat(String key) Get a float associated with the given configuration key. |
public float | getFloat(String key, float defaultValue) Get a float associated with the given configuration key.
Parameters: key - The configuration key. Parameters: defaultValue - The default value. |
public Float | getFloat(String key, Float defaultValue) Get a float associated with the given configuration key.
Parameters: key - The configuration key. Parameters: defaultValue - The default value. |
public int | getInt(String key) Get a int associated with the given configuration key.
Parameters: key - The configuration key. |
public int | getInt(String key, int defaultValue) Get a int associated with the given configuration key.
Parameters: key - The configuration key. Parameters: defaultValue - The default value. |
public Integer | getInteger(String key, Integer defaultValue) Get a int associated with the given configuration key.
Parameters: key - The configuration key. Parameters: defaultValue - The default value. |
public Iterator | getKeys() Get the list of the keys contained in the configuration
repository. |
public Iterator | getKeys(String key) Get the list of the keys contained in the configuration
repository. |
public long | getLong(String key) Get a long associated with the given configuration key.
Parameters: key - The configuration key. |
public long | getLong(String key, long defaultValue) Get a long associated with the given configuration key.
Parameters: key - The configuration key. Parameters: defaultValue - The default value. |
public Long | getLong(String key, Long defaultValue) Get a long associated with the given configuration key.
Parameters: key - The configuration key. Parameters: defaultValue - The default value. |
public int | getNumberOfConfigurations() |
public Properties | getProperties(String key) Get a list of properties associated with the given
configuration key.
Parameters: key - The configuration key. |
public Object | getProperty(String key) Gets a property from the configuration.
Parameters: key - property to retrieve value as object. |
public short | getShort(String key) Get a short associated with the given configuration key.
Parameters: key - The configuration key. |
public short | getShort(String key, short defaultValue) Get a short associated with the given configuration key.
Parameters: key - The configuration key. Parameters: defaultValue - The default value. |
public Short | getShort(String key, Short defaultValue) Get a short associated with the given configuration key.
Parameters: key - The configuration key. Parameters: defaultValue - The default value. |
public String | getString(String key) Get a string associated with the given configuration key.
Parameters: key - The configuration key. |
public String | getString(String key, String defaultValue) Get a string associated with the given configuration key.
Parameters: key - The configuration key. Parameters: defaultValue - The default value. |
public String[] | getStringArray(String key) Get an array of strings associated with the given configuration
key.
Parameters: key - The configuration key. |
public Vector | getVector(String key) Get a Vector of strings associated with the given configuration key.
Parameters: key - The configuration key. |
public Vector | getVector(String key, Vector defaultValue) Get a Vector of strings associated with the given configuration key.
Parameters: key - The configuration key. Parameters: defaultValue - The default value. |
public boolean | isEmpty() |
public void | removeConfiguration(Configuration config) |
public void | setProperty(String key, Object value) Set a property, this will replace any previously
set values. |
public Configuration | subset(String prefix) Create a CompositeConfiguration object that is a subset
of this one. |