Example usage for Java org.apache.commons.configuration HierarchicalConfiguration fields, constructors, methods, implement or subclass
The text is from its open source code.
int | EVENT_CLEAR_TREE Constant for the clear tree event. |
int | EVENT_ADD_NODES Constant for the add nodes event. |
HierarchicalConfiguration() Creates a new instance of HierarchicalConfiguration . | |
HierarchicalConfiguration(HierarchicalConfiguration c) Creates a new instance of HierarchicalConfiguration and copies all data contained in the specified configuration into the new one. |
void | addConfigurationListener(ConfigurationListener l) Adds a configuration listener to this object. |
void | addNodes(String key, Collection nodes) Adds a collection of nodes at the specified position of the configuration tree. |
void | addProperty(String key, Object value) |
void | append(Configuration c) Appends the content of the specified configuration to this configuration. |
void | clearTree(String key) Removes all values of the property with the given name and of keys that start with this name. |
Object | clone() Creates a copy of this object. |
SubnodeConfiguration | configurationAt(String key) Returns a hierarchical subnode configuration for the node specified by the given key. |
SubnodeConfiguration | configurationAt(String key, boolean supportUpdates) Returns a hierarchical subnode configuration object that wraps the configuration node specified by the given key. |
List | configurationsAt(String key) Returns a list of sub configurations for all configuration nodes selected by the given key. |
boolean | containsKey(String key) Checks if the specified key is contained in this configuration. |
void | copy(Configuration c) Copies the content of the specified configuration into this configuration. |
BigDecimal | getBigDecimal(String key, BigDecimal defaultValue) |
BigInteger | getBigInteger(String key, BigInteger defaultValue) |
boolean | getBoolean(String key) |
boolean | getBoolean(String key, boolean defaultValue) |
byte | getByte(String key) |
byte | getByte(String key, byte defaultValue) |
double | getDouble(String key) |
double | getDouble(String key, double defaultValue) |
ExpressionEngine | getExpressionEngine() Returns the expression engine used by this configuration. |
float | getFloat(String key) |
float | getFloat(String key, float defaultValue) |
int | getInt(String key) |
int | getInt(String key, int defaultValue) |
Integer | getInteger(String key, Integer defaultValue) |
Iterator | getKeys() Returns an iterator with all keys defined in this configuration. |
Iterator | getKeys(String prefix) Returns an iterator with all keys defined in this configuration that start with the given prefix. |
List | getList(String key) |
char | getListDelimiter() Retrieve the delimiter for this configuration. |
Log | getLogger() Returns the logger used by this configuration object. |
long | getLong(String key) |
long | getLong(String key, long defaultValue) |
int | getMaxIndex(String key) Returns the maximum defined index for the given key. |
Object | getProperty(String key) Fetches the specified property. |
Node | getRoot() Returns the root node of this hierarchical configuration. |
ConfigurationNode | getRootNode() Returns the root node of this hierarchical configuration. |
short | getShort(String key) |
short | getShort(String key, short defaultValue) |
String | getString(String key) |
String | getString(String key, String defaultValue) |
String[] | getStringArray(String key) Get an array of strings associated with the given configuration key. |
boolean | isDelimiterParsingDisabled() Determine if this configuration is using delimiters when parsing property values to convert them to lists of values. |
boolean | isDetailEvents() Returns a flag whether detail events are enabled. |
boolean | isEmpty() Checks if this configuration is empty. |
boolean | isThrowExceptionOnMissing() Returns true if missing values throw Exceptions. |
void | setDelimiterParsingDisabled(boolean delimiterParsingDisabled) Set whether this configuration should use delimiters when parsing property values to convert them to lists of values. |
void | setExpressionEngine(ExpressionEngine expressionEngine) Sets the expression engine to be used by this configuration. |
void | setLogger(Log log) Allows to set the logger to be used by this configuration object. |
void | setProperty(String key, Object value) Sets the value of the specified property. |
void | setRoot(Node node) Sets the root node of this hierarchical configuration. |
void | setRootNode(ConfigurationNode rootNode) Sets the root node of this hierarchical configuration. |
Configuration | subset(String prefix) Creates a new Configuration object containing all keys that start with the specified prefix. |
String | toString() Returns a string representation of the object. |