org.apache.slide.util.conf
Class ConfigurationElement

java.lang.Object
  |
  +--org.apache.slide.util.conf.AbstractConfiguration
        |
        +--org.apache.slide.util.conf.ConfigurationElement
All Implemented Interfaces:
Configuration

public class ConfigurationElement
extends AbstractConfiguration

ConfigurationElement is a class implementing the Configuration interface using a tree of Elements as configuration container. The Elements tree is generated from the configuration DOM. Each Element is encapsulated by a ConfigurationElement.

Version:
(CVS $Revision: 1.1 $ $Date: 2000/07/14 16:44:52 $)
Author:
Federico Barbieri, Pierpaolo Fumagalli, Stefano Mazzocchi, Java Apache Project

Fields inherited from class org.apache.slide.util.conf.AbstractConfiguration
location
 
Constructor Summary
ConfigurationElement(Element content)
           
 
Method Summary
 java.lang.String getAttribute(java.lang.String name)
          Return the value of specified attribute.
 Configuration getConfiguration(java.lang.String name)
          Return the first Configuration object child of this associated with the given name.
 java.util.Enumeration getConfigurations(java.lang.String name)
          Return an Enumeration of Configuration elements containing all node children with the specified name.
 java.lang.String getName()
          Return the name of the node.
 java.lang.String getValue()
          Return the String value of the node.
 
Methods inherited from class org.apache.slide.util.conf.AbstractConfiguration
getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsFloat, getAttributeAsFloat, getAttributeAsInt, getAttributeAsInt, getAttributeAsLong, getAttributeAsLong, getLocation, getValue, getValueAsBoolean, getValueAsBoolean, getValueAsFloat, getValueAsFloat, getValueAsInt, getValueAsInt, getValueAsLong, getValueAsLong
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationElement

public ConfigurationElement(Element content)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Configuration
Return the name of the node.

getValue

public java.lang.String getValue()
Description copied from interface: Configuration
Return the String value of the node.

getAttribute

public java.lang.String getAttribute(java.lang.String name)
                              throws ConfigurationException
Description copied from interface: Configuration
Return the value of specified attribute.
Following copied from interface: org.apache.slide.util.conf.Configuration
Parameters:
paramName - The name of the parameter you ask the value of.
Throws:
ConfigurationException - If no attribute with that name exists.

getConfiguration

public Configuration getConfiguration(java.lang.String name)
                               throws ConfigurationException
Description copied from class: AbstractConfiguration
Return the first Configuration object child of this associated with the given name.
Overrides:
getConfiguration in class AbstractConfiguration
Following copied from interface: org.apache.slide.util.conf.Configuration
Parameters:
child - The name of the child node.
Throws:
ConfigurationException - If no child with that name exists.

getConfigurations

public java.util.Enumeration getConfigurations(java.lang.String name)
                                        throws ConfigurationException
Description copied from interface: Configuration
Return an Enumeration of Configuration elements containing all node children with the specified name.
Following copied from interface: org.apache.slide.util.conf.Configuration
Parameters:
name - The name of the children to get.