Example usage for Java org.apache.commons.configuration Configuration fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addProperty(String key, Object value) Add a property to the configuration. |
void | clear() Remove all properties from the configuration. |
void | clearProperty(String key) Remove a property from the configuration. |
boolean | containsKey(String key) Check if the configuration contains the specified key. |
boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. |
BigDecimal | getBigDecimal(String key) Get a BigDecimal associated with the given configuration key. |
BigDecimal | getBigDecimal(String key, BigDecimal defaultValue) Get a BigDecimal associated with the given configuration key. |
BigInteger | getBigInteger(String key) Get a BigInteger associated with the given configuration key. |
BigInteger | getBigInteger(String key, BigInteger defaultValue) Get a BigInteger associated with the given configuration key. |
boolean | getBoolean(String key) Get a boolean associated with the given configuration key. |
boolean | getBoolean(String key, boolean defaultValue) Get a boolean associated with the given configuration key. |
Boolean | getBoolean(String key, Boolean defaultValue) Get a Boolean associated with the given configuration key. |
byte | getByte(String key) Get a byte associated with the given configuration key. |
byte | getByte(String key, byte defaultValue) Get a byte associated with the given configuration key. |
Byte | getByte(String key, Byte defaultValue) Get a Byte associated with the given configuration key. |
Class> | getClass() Returns the runtime class of this Object . |
double | getDouble(String key, double defaultValue) Get a double associated with the given configuration key. |
Double | getDouble(String key, Double defaultValue) Get a Double associated with the given configuration key. |
double | getDouble(String key) Get a double associated with the given configuration key. |
float | getFloat(String key) Get a float associated with the given configuration key. |
float | getFloat(String key, float defaultValue) Get a float associated with the given configuration key. |
Float | getFloat(String key, Float defaultValue) Get a Float associated with the given configuration key. |
int | getInt(String key) Get a int associated with the given configuration key. |
int | getInt(String key, int defaultValue) Get a int associated with the given configuration key. |
Integer | getInteger(String key, Integer defaultValue) Get an Integer associated with the given configuration key. |
Iterator | getKeys() Get the list of the keys contained in the configuration. |
Iterator | getKeys(String prefix) Get the list of the keys contained in the configuration that match the specified prefix. |
List | getList(String key) Get a List of strings associated with the given configuration key. |
List | getList(String key, List defaultValue) Get a List of strings associated with the given configuration key. |
long | getLong(String key, long defaultValue) Get a long associated with the given configuration key. |
Long | getLong(String key, Long defaultValue) Get a Long associated with the given configuration key. |
long | getLong(String key) Get a long associated with the given configuration key. |
Properties | getProperties(String key) Get a list of properties associated with the given configuration key. |
Object | getProperty(String key) Gets a property from the configuration. |
short | getShort(String key) Get a short associated with the given configuration key. |
short | getShort(String key, short defaultValue) Get a short associated with the given configuration key. |
Short | getShort(String key, Short defaultValue) Get a Short associated with the given configuration key. |
String | getString(String key) Get a string associated with the given configuration key. |
String | getString(String key, String defaultValue) Get a string associated with the given configuration key. |
String[] | getStringArray(String key) Get an array of strings associated with the given configuration key. |
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) Return a decorator Configuration containing every key from the current Configuration that starts with the specified prefix. |