Java org.apache.commons.configuration HierarchicalConfiguration fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.configuration HierarchicalConfiguration fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.configuration HierarchicalConfiguration.

The text is from its open source code.

Subclass

org.apache.commons.configuration.HierarchicalConfiguration has subclasses.
Click this link to see all its subclasses.

Field

intEVENT_CLEAR_TREE
Constant for the clear tree event.
intEVENT_ADD_NODES
Constant for the add nodes event.

Constructor

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.

Method

voidaddConfigurationListener(ConfigurationListener l)
Adds a configuration listener to this object.
voidaddNodes(String key, Collection nodes)
Adds a collection of nodes at the specified position of the configuration tree.
voidaddProperty(String key, Object value)
voidappend(Configuration c)
Appends the content of the specified configuration to this configuration.
voidclearTree(String key)
Removes all values of the property with the given name and of keys that start with this name.
Objectclone()
Creates a copy of this object.
SubnodeConfigurationconfigurationAt(String key)
Returns a hierarchical subnode configuration for the node specified by the given key.
SubnodeConfigurationconfigurationAt(String key, boolean supportUpdates)

Returns a hierarchical subnode configuration object that wraps the configuration node specified by the given key.

ListconfigurationsAt(String key)
Returns a list of sub configurations for all configuration nodes selected by the given key.
booleancontainsKey(String key)
Checks if the specified key is contained in this configuration.
voidcopy(Configuration c)
Copies the content of the specified configuration into this configuration.
BigDecimalgetBigDecimal(String key, BigDecimal defaultValue)
BigIntegergetBigInteger(String key, BigInteger defaultValue)
booleangetBoolean(String key)
booleangetBoolean(String key, boolean defaultValue)
bytegetByte(String key)
bytegetByte(String key, byte defaultValue)
doublegetDouble(String key)
doublegetDouble(String key, double defaultValue)
ExpressionEnginegetExpressionEngine()
Returns the expression engine used by this configuration.
floatgetFloat(String key)
floatgetFloat(String key, float defaultValue)
intgetInt(String key)
intgetInt(String key, int defaultValue)
IntegergetInteger(String key, Integer defaultValue)
IteratorgetKeys()
Returns an iterator with all keys defined in this configuration.
IteratorgetKeys(String prefix)
Returns an iterator with all keys defined in this configuration that start with the given prefix.
ListgetList(String key)
chargetListDelimiter()
Retrieve the delimiter for this configuration.
LoggetLogger()
Returns the logger used by this configuration object.
longgetLong(String key)
longgetLong(String key, long defaultValue)
intgetMaxIndex(String key)
Returns the maximum defined index for the given key.
ObjectgetProperty(String key)
Fetches the specified property.
NodegetRoot()
Returns the root node of this hierarchical configuration.
ConfigurationNodegetRootNode()
Returns the root node of this hierarchical configuration.
shortgetShort(String key)
shortgetShort(String key, short defaultValue)
StringgetString(String key)
StringgetString(String key, String defaultValue)
String[]getStringArray(String key)
Get an array of strings associated with the given configuration key.
booleanisDelimiterParsingDisabled()
Determine if this configuration is using delimiters when parsing property values to convert them to lists of values.
booleanisDetailEvents()
Returns a flag whether detail events are enabled.
booleanisEmpty()
Checks if this configuration is empty.
booleanisThrowExceptionOnMissing()
Returns true if missing values throw Exceptions.
voidsetDelimiterParsingDisabled(boolean delimiterParsingDisabled)
Set whether this configuration should use delimiters when parsing property values to convert them to lists of values.
voidsetExpressionEngine(ExpressionEngine expressionEngine)
Sets the expression engine to be used by this configuration.
voidsetLogger(Log log)
Allows to set the logger to be used by this configuration object.
voidsetProperty(String key, Object value)
Sets the value of the specified property.
voidsetRoot(Node node)
Sets the root node of this hierarchical configuration.
voidsetRootNode(ConfigurationNode rootNode)
Sets the root node of this hierarchical configuration.
Configurationsubset(String prefix)
Creates a new Configuration object containing all keys that start with the specified prefix.
StringtoString()
Returns a string representation of the object.