org.apache.commons.configuration
Class CombinedConfiguration.ConfigData

java.lang.Object
  extended by org.apache.commons.configuration.CombinedConfiguration.ConfigData
Enclosing class:
CombinedConfiguration

static class CombinedConfiguration.ConfigData
extends java.lang.Object

An internal helper class for storing information about contained configurations.


Field Summary
private  java.lang.String at
          Stores the at string.
private  java.util.Collection atPath
          Stores the at information as path of nodes.
private  AbstractConfiguration configuration
          Stores a reference to the configuration.
private  java.lang.String name
          Stores the name under which the configuration is stored.
private  ConfigurationNode rootNode
          Stores the root node for this child configuration.
 
Constructor Summary
CombinedConfiguration.ConfigData(AbstractConfiguration config, java.lang.String n, java.lang.String at)
          Creates a new instance of ConfigData and initializes it.
 
Method Summary
 java.lang.String getAt()
          Returns the at position of this configuration.
 AbstractConfiguration getConfiguration()
          Returns the stored configuration.
 java.lang.String getName()
          Returns the configuration's name.
 ConfigurationNode getRootNode()
          Returns the root node for this child configuration.
 ConfigurationNode getTransformedRoot()
          Returns the transformed root node of the stored configuration.
private  java.util.Collection parseAt(java.lang.String at)
          Splits the at path into its components.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configuration

private AbstractConfiguration configuration
Stores a reference to the configuration.


name

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


atPath

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


at

private java.lang.String at
Stores the at string.


rootNode

private ConfigurationNode rootNode
Stores the root node for this child configuration.

Constructor Detail

CombinedConfiguration.ConfigData

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

Parameters:
config - the configuration
n - the name
at - the at position
Method Detail

getConfiguration

public AbstractConfiguration getConfiguration()
Returns the stored configuration.

Returns:
the configuration

getName

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

Returns:
the name

getAt

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

Returns:
the at position

getRootNode

public ConfigurationNode getRootNode()
Returns the root node for this child configuration.

Returns:
the root node of this child configuration
Since:
1.5

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 java.util.Collection parseAt(java.lang.String at)
Splits the at path into its components.

Parameters:
at - the at string
Returns:
a collection with the names of the single components