Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jdbf.engine.configuration
Class AbstractConfiguration  view AbstractConfiguration download AbstractConfiguration.java

java.lang.Object
  extended byorg.jdbf.engine.configuration.AbstractConfiguration
All Implemented Interfaces:
Configuration
Direct Known Subclasses:
ConfigurationImpl

public abstract class AbstractConfiguration
extends java.lang.Object
implements Configuration

AbstractConfiguration is a abstract configuration that represents a node in a XML file.


Field Summary
protected  java.lang.String name
          name of this configuration
protected  java.lang.String value
          value of this configuration
 
Constructor Summary
protected AbstractConfiguration(java.lang.String name)
          Creates the AbstractConfiguration object.
 
Method Summary
abstract  Configuration getConfiguration(java.lang.String name)
          Return a configuration specified in name
abstract  java.util.Iterator getConfigurations(java.lang.String name)
          Return a iterator of configuration specified in name
 float getFloatValue()
          Return the value of this configuraion as a float.
 int getIntValue()
          Return the value of this configuraion as a int
 java.lang.String getName()
          Return the name of this configuration
 java.lang.String getValue()
          Return the value of this configuration
 java.lang.String getValue(java.lang.String defaultValue)
          Return the value of this configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jdbf.engine.configuration.Configuration
getConfiguration
 

Field Detail

value

protected java.lang.String value
value of this configuration


name

protected java.lang.String name
name of this configuration

Constructor Detail

AbstractConfiguration

protected AbstractConfiguration(java.lang.String name)
Creates the AbstractConfiguration object.

Method Detail

getFloatValue

public float getFloatValue()
                    throws java.lang.NumberFormatException
Return the value of this configuraion as a float.

Specified by:
getFloatValue in interface Configuration

getIntValue

public int getIntValue()
                throws java.lang.NumberFormatException
Return the value of this configuraion as a int

Specified by:
getIntValue in interface Configuration

getName

public java.lang.String getName()
Return the name of this configuration

Specified by:
getName in interface Configuration

getValue

public java.lang.String getValue()
Return the value of this configuration

Specified by:
getValue in interface Configuration

getValue

public java.lang.String getValue(java.lang.String defaultValue)
Return the value of this configuration. Return the defaultValue is value is null

Specified by:
getValue in interface Configuration

getConfigurations

public abstract java.util.Iterator getConfigurations(java.lang.String name)
Return a iterator of configuration specified in name

Specified by:
getConfigurations in interface Configuration

getConfiguration

public abstract Configuration getConfiguration(java.lang.String name)
Return a configuration specified in name

Specified by:
getConfiguration in interface Configuration