Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.4 $ $Date: 2004/07/28 09:34:24 $)

Field Summary

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.

  Returns:
    name of the `Configuration` node.

### getValue

    public java.lang.String getValue()

  Description copied from interface: `Configuration`
  Return the `String` value of the node.

  Returns:
    the 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.

  Parameters:
    `name` - The name of the parameter you ask the value of.
  Returns:
    String value of attribute.
  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.

  Specified by:
    `getConfiguration` in interface `Configuration`
  Overrides:
    `getConfiguration` in class `AbstractConfiguration`
  Throws:
    `ConfigurationException`

### 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.

  ``
  Parameters:
    `name` - The name of the children to get.
  Returns:
    Enumeration. The `Enumeration` will be empty if there are no nodes by the specified name.
  Throws:
    `ConfigurationException`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD