org.beanmaker.conf
Class ConfigurationImpl

java.lang.Object
  |
  +--org.beanmaker.conf.AbstractConfiguration
        |
        +--org.beanmaker.conf.ConfigurationImpl
All Implemented Interfaces:
Configuration

public class ConfigurationImpl
extends AbstractConfiguration


Field Summary
 
Fields inherited from class org.beanmaker.conf.AbstractConfiguration
name, value
 
Constructor Summary
ConfigurationImpl(java.lang.String name)
           
 
Method Summary
 void addConfiguration(Configuration config)
          Add a configuration subnode
 void appendValueData(java.lang.String value)
           
 Configuration getConfiguration(java.lang.String name)
          Return the first subnode for the given name
 Configuration getConfiguration(java.lang.String name, java.lang.String defaultValue)
          Return the first subnode for the given name
 java.util.Iterator getConfigurations(java.lang.String name)
          Return an iterator for configuration subnodes for the given name
 
Methods inherited from class org.beanmaker.conf.AbstractConfiguration
getFloatValue, getIntValue, getName, getValue, getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationImpl

public ConfigurationImpl(java.lang.String name)
Method Detail

appendValueData

public void appendValueData(java.lang.String value)

getConfigurations

public java.util.Iterator getConfigurations(java.lang.String name)
Return an iterator for configuration subnodes for the given name

Specified by:
getConfigurations in interface Configuration
Specified by:
getConfigurations in class AbstractConfiguration
Parameters:
name - a of the list of child nodes to return
Returns:
an Iterator for child nodes for the given name

getConfiguration

public Configuration getConfiguration(java.lang.String name)
Return the first subnode for the given name

Specified by:
getConfiguration in interface Configuration
Specified by:
getConfiguration in class AbstractConfiguration
Parameters:
name - of the Configuration to return.
Returns:
a Configuration value for the given name

getConfiguration

public Configuration getConfiguration(java.lang.String name,
                                      java.lang.String defaultValue)
Return the first subnode for the given name

Parameters:
defaultValue - value to use for new Configuration if not present
name - of the Configuration to return.
Returns:
a Configuration value for the given name

addConfiguration

public void addConfiguration(Configuration config)
Add a configuration subnode



Copyright © 2002 Giovanni Martone.