Method Summary |
|
void | addProperty(String key, Object value) Add a property to the configuration. |
void | clearProperty(String key) Clear a property in the configuration. |
boolean | containsKey(String key) Check if the configuration contains the key. |
boolean | getBoolean(String key) Get a boolean associated with the given configuration key.
Parameters: key - The configuration key. |
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. |
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. |
byte | getByte(String key) Get a byte associated with the given configuration key.
Parameters: key - The configuration key. |
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. |
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. |
double | getDouble(String key) Get a double associated with the given configuration key.
Parameters: key - The configuration key. |
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. |
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. |
float | getFloat(String key) Get a float associated with the given configuration key.
Parameters: key - The configuration key. |
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. |
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. |
int | getInt(String key) Get a int associated with the given configuration key.
Parameters: key - The configuration key. |
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. |
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. |
Iterator | getKeys(String prefix) Get the list of the keys contained in the configuration
repository that match the specified prefix.
Parameters: prefix - The prefix to test against. |
Iterator | getKeys() Get the list of the keys contained in the configuration
repository. |
long | getLong(String key) Get a long associated with the given configuration key.
Parameters: key - The configuration key. |
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. |
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. |
Properties | getProperties(String key) Get a list of properties associated with the given
configuration key.
Parameters: key - The configuration key. |
Object | getProperty(String key) Gets a property from the configuration.
Parameters: key - property to retrieve value as object. |
short | getShort(String key) Get a short associated with the given configuration key.
Parameters: key - The configuration key. |
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. |
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. |
String | getString(String key) Get a string associated with the given configuration key.
Parameters: key - The configuration key. |
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. |
String[] | getStringArray(String key) Get an array of strings associated with the given configuration
key.
Parameters: key - The configuration key. |
Vector | getVector(String key) Get a Vector of strings associated with the given configuration key.
Parameters: key - The configuration key. |
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. |
boolean | isEmpty() Check if the configuration is empty. |
void | setProperty(String key, Object value) Set a property, this will replace any previously
set values. |
Configuration | subset(String prefix) Create an Configuration object that is a subset
of this one. |