org.apache.cocoon.components
Class ChainedConfiguration

java.lang.Object
  extended by org.apache.cocoon.components.ChainedConfiguration
All Implemented Interfaces:
Configuration

public final class ChainedConfiguration
extends Object
implements Configuration

This configuration object is used for SitemapConfigurable components. It 'extends' Configuration by a parent.

Since:
2.1
Version:
$Id: ChainedConfiguration.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler

Constructor Summary
ChainedConfiguration(Configuration wrapped, ChainedConfiguration parent)
          Constructor
 
Method Summary
 String getAttribute(String arg0)
           
 String getAttribute(String arg0, String arg1)
           
 boolean getAttributeAsBoolean(String arg0)
           
 boolean getAttributeAsBoolean(String arg0, boolean arg1)
           
 double getAttributeAsDouble(String name)
           
 double getAttributeAsDouble(String name, double value)
           
 float getAttributeAsFloat(String arg0)
           
 float getAttributeAsFloat(String arg0, float arg1)
           
 int getAttributeAsInteger(String arg0)
           
 int getAttributeAsInteger(String arg0, int arg1)
           
 long getAttributeAsLong(String arg0)
           
 long getAttributeAsLong(String arg0, long arg1)
           
 String[] getAttributeNames()
           
 Configuration getChild(String arg0)
           
 Configuration getChild(String arg0, boolean arg1)
           
 Configuration[] getChildren()
           
 Configuration[] getChildren(String arg0)
           
 String getLocation()
           
 String getName()
           
 String getNamespace()
           
 ChainedConfiguration getParent()
          Get the parent configuration
 String getValue()
           
 String getValue(String arg0)
           
 boolean getValueAsBoolean()
           
 boolean getValueAsBoolean(boolean arg0)
           
 double getValueAsDouble()
           
 double getValueAsDouble(double value)
           
 float getValueAsFloat()
           
 float getValueAsFloat(float arg0)
           
 int getValueAsInteger()
           
 int getValueAsInteger(int arg0)
           
 long getValueAsLong()
           
 long getValueAsLong(long arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainedConfiguration

public ChainedConfiguration(Configuration wrapped,
                            ChainedConfiguration parent)
Constructor

Method Detail

getParent

public ChainedConfiguration getParent()
Get the parent configuration

Returns:
the parent configuration or null.

getAttribute

public String getAttribute(String arg0,
                           String arg1)
Specified by:
getAttribute in interface Configuration

getAttribute

public String getAttribute(String arg0)
                    throws ConfigurationException
Specified by:
getAttribute in interface Configuration
Throws:
ConfigurationException

getAttributeAsBoolean

public boolean getAttributeAsBoolean(String arg0,
                                     boolean arg1)
Specified by:
getAttributeAsBoolean in interface Configuration

getAttributeAsBoolean

public boolean getAttributeAsBoolean(String arg0)
                              throws ConfigurationException
Specified by:
getAttributeAsBoolean in interface Configuration
Throws:
ConfigurationException

getAttributeAsFloat

public float getAttributeAsFloat(String arg0,
                                 float arg1)
Specified by:
getAttributeAsFloat in interface Configuration

getAttributeAsFloat

public float getAttributeAsFloat(String arg0)
                          throws ConfigurationException
Specified by:
getAttributeAsFloat in interface Configuration
Throws:
ConfigurationException

getAttributeAsInteger

public int getAttributeAsInteger(String arg0,
                                 int arg1)
Specified by:
getAttributeAsInteger in interface Configuration

getAttributeAsInteger

public int getAttributeAsInteger(String arg0)
                          throws ConfigurationException
Specified by:
getAttributeAsInteger in interface Configuration
Throws:
ConfigurationException

getAttributeAsLong

public long getAttributeAsLong(String arg0,
                               long arg1)
Specified by:
getAttributeAsLong in interface Configuration

getAttributeAsLong

public long getAttributeAsLong(String arg0)
                        throws ConfigurationException
Specified by:
getAttributeAsLong in interface Configuration
Throws:
ConfigurationException

getAttributeNames

public String[] getAttributeNames()
Specified by:
getAttributeNames in interface Configuration

getChild

public Configuration getChild(String arg0,
                              boolean arg1)
Specified by:
getChild in interface Configuration

getChild

public Configuration getChild(String arg0)
Specified by:
getChild in interface Configuration

getChildren

public Configuration[] getChildren()
Specified by:
getChildren in interface Configuration

getChildren

public Configuration[] getChildren(String arg0)
Specified by:
getChildren in interface Configuration

getLocation

public String getLocation()
Specified by:
getLocation in interface Configuration

getName

public String getName()
Specified by:
getName in interface Configuration

getNamespace

public String getNamespace()
                    throws ConfigurationException
Specified by:
getNamespace in interface Configuration
Throws:
ConfigurationException

getValue

public String getValue()
                throws ConfigurationException
Specified by:
getValue in interface Configuration
Throws:
ConfigurationException

getValue

public String getValue(String arg0)
Specified by:
getValue in interface Configuration

getValueAsBoolean

public boolean getValueAsBoolean()
                          throws ConfigurationException
Specified by:
getValueAsBoolean in interface Configuration
Throws:
ConfigurationException

getValueAsBoolean

public boolean getValueAsBoolean(boolean arg0)
Specified by:
getValueAsBoolean in interface Configuration

getValueAsFloat

public float getValueAsFloat()
                      throws ConfigurationException
Specified by:
getValueAsFloat in interface Configuration
Throws:
ConfigurationException

getValueAsFloat

public float getValueAsFloat(float arg0)
Specified by:
getValueAsFloat in interface Configuration

getValueAsInteger

public int getValueAsInteger()
                      throws ConfigurationException
Specified by:
getValueAsInteger in interface Configuration
Throws:
ConfigurationException

getValueAsInteger

public int getValueAsInteger(int arg0)
Specified by:
getValueAsInteger in interface Configuration

getValueAsLong

public long getValueAsLong()
                    throws ConfigurationException
Specified by:
getValueAsLong in interface Configuration
Throws:
ConfigurationException

getValueAsLong

public long getValueAsLong(long arg0)
Specified by:
getValueAsLong in interface Configuration

getAttributeAsDouble

public double getAttributeAsDouble(String name)
                            throws ConfigurationException
Specified by:
getAttributeAsDouble in interface Configuration
Throws:
ConfigurationException

getValueAsDouble

public double getValueAsDouble()
                        throws ConfigurationException
Specified by:
getValueAsDouble in interface Configuration
Throws:
ConfigurationException

getValueAsDouble

public double getValueAsDouble(double value)
Specified by:
getValueAsDouble in interface Configuration

getAttributeAsDouble

public double getAttributeAsDouble(String name,
                                   double value)
Specified by:
getAttributeAsDouble in interface Configuration


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.