org.apache.commons.configuration

Class CombinedConfiguration.ConfigData

static class CombinedConfiguration.ConfigData extends Object

An internal helper class for storing information about contained configurations.
Field Summary
Stringat
Stores the at string.
CollectionatPath
Stores the at information as path of nodes.
AbstractConfigurationconfiguration
Stores a reference to the configuration.
Stringname
Stores the name under which the configuration is stored.
Constructor Summary
ConfigData(AbstractConfiguration config, String n, String at)
Creates a new instance of ConfigData and initializes it.
Method Summary
StringgetAt()
Returns the at position of this configuration.
AbstractConfigurationgetConfiguration()
Returns the stored configuration.
StringgetName()
Returns the configuration's name.
ConfigurationNodegetTransformedRoot()
Returns the transformed root node of the stored configuration.
CollectionparseAt(String at)
Splits the at path into its components.

Field Detail

at

private String at
Stores the at string.

atPath

private Collection atPath
Stores the at information as path of nodes.

configuration

private AbstractConfiguration configuration
Stores a reference to the configuration.

name

private String name
Stores the name under which the configuration is stored.

Constructor Detail

ConfigData

public ConfigData(AbstractConfiguration config, String n, String at)
Creates a new instance of ConfigData and initializes it.

Parameters: config the configuration n the name at the at position

Method Detail

getAt

public String getAt()
Returns the at position of this configuration.

Returns: the at position

getConfiguration

public AbstractConfiguration getConfiguration()
Returns the stored configuration.

Returns: the configuration

getName

public String getName()
Returns the configuration's name.

Returns: the name

getTransformedRoot

public ConfigurationNode getTransformedRoot()
Returns the transformed root node of the stored configuration. The term "transformed" means that an eventually defined at path has been applied.

Returns: the transformed root node

parseAt

private Collection parseAt(String at)
Splits the at path into its components.

Parameters: at the at string

Returns: a collection with the names of the single components