Example usage for Java org.apache.commons.collections ExtendedProperties fields, constructors, methods, implement or subclass
The text is from its open source code.
ExtendedProperties() Creates an empty extended properties object. | |
ExtendedProperties(String file) Creates and loads the extended properties from the specified file. |
void | addProperty(String key, Object value) Add a property to the configuration. |
void | combine(ExtendedProperties props) Combines an existing Hashtable with this Hashtable. |
boolean | containsKey(Object key) Tests if the specified object is a key in this hashtable. |
ExtendedProperties | convertProperties(Properties props) Convert a standard properties class into a configuration class. |
Set | entrySet() Returns a Set view of the mappings contained in this map. |
V | get(Object key) Returns the value to which the specified key is mapped, or null if this map contains no mapping for the 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. |
boolean | getBoolean(String key) Get a boolean associated with the given configuration key. |
byte | getByte(String key) Get a byte 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. |
int | getInt(String name, int def) The purpose of this method is to get the configuration resource with the given name as an integer, or a default value. |
int | getInt(String name) The purpose of this method is to get the configuration resource with the given name as an integer. |
Iterator | getKeys(String prefix) Get the list of the keys contained in the configuration repository that match the specified prefix. |
Iterator | getKeys() Get the list of the keys contained in the configuration repository. |
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. |
Object | getProperty(String key) Gets a property from the configuration. |
short | getShort(String key) 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. |
Vector | getVector(String key) Get a Vector of strings associated with the given configuration key. |
boolean | isEmpty() Tests if this hashtable maps no keys to values. |
Enumeration | keys() Returns an enumeration of the keys in this hashtable. |
Set | keySet() Returns a Set view of the keys contained in this map. |
void | load(InputStream input) Load the properties from the given input stream. |
void | load(InputStream input, String enc) Load the properties from the given input stream and using the specified encoding. |
V | put(K key, V value) Maps the specified key to the specified value in this hashtable. |
void | putAll(Map extends K, ? extends V> t) Copies all of the mappings from the specified map to this hashtable. |
void | save(OutputStream output, String header) Save the properties to the given output stream. |
void | setProperty(String key, Object value) Set a property, this will replace any previously set values. |
int | size() Returns the number of keys in this hashtable. |
ExtendedProperties | subset(String prefix) Create an ExtendedProperties object that is a subset of this one. |