org.codehaus.plexus.personality.avalon
Class AvalonConfiguration

java.lang.Object
  extended by org.codehaus.plexus.personality.avalon.AvalonConfiguration
All Implemented Interfaces:
org.apache.avalon.framework.configuration.Configuration

public class AvalonConfiguration
extends Object
implements org.apache.avalon.framework.configuration.Configuration

Wrapper which translates the Plexus Configuration to an AvalonConfiguration.

Since:
Jan 6, 2004
Author:
Dan Diephouse

Constructor Summary
AvalonConfiguration(org.codehaus.plexus.configuration.PlexusConfiguration config)
           
 
Method Summary
 String getAttribute(org.codehaus.plexus.configuration.PlexusConfiguration configuration, String name, String defaultValue)
           
 String getAttribute(String attr)
           
 String getAttribute(String attr, String defaultValue)
           
 boolean getAttributeAsBoolean(org.codehaus.plexus.configuration.PlexusConfiguration configuration, String name)
           
protected  boolean getAttributeAsBoolean(org.codehaus.plexus.configuration.PlexusConfiguration configuration, String name, boolean defaultValue)
           
 boolean getAttributeAsBoolean(String attr)
           
 boolean getAttributeAsBoolean(String attr, boolean defaultValue)
           
 double getAttributeAsDouble(org.codehaus.plexus.configuration.PlexusConfiguration configuration, String name)
           
 double getAttributeAsDouble(org.codehaus.plexus.configuration.PlexusConfiguration configuration, String name, double defaultValue)
           
 double getAttributeAsDouble(String attr)
           
 double getAttributeAsDouble(String attr, double defaultValue)
           
 float getAttributeAsFloat(org.codehaus.plexus.configuration.PlexusConfiguration configuration, String name)
           
 float getAttributeAsFloat(org.codehaus.plexus.configuration.PlexusConfiguration configuration, String name, float defaultValue)
           
 float getAttributeAsFloat(String attr)
           
 float getAttributeAsFloat(String attr, float defaultValue)
           
 int getAttributeAsInteger(org.codehaus.plexus.configuration.PlexusConfiguration configuration, String name)
           
 int getAttributeAsInteger(org.codehaus.plexus.configuration.PlexusConfiguration configuration, String name, int defaultValue)
           
 int getAttributeAsInteger(String attr)
           
 int getAttributeAsInteger(String attr, int defaultValue)
           
 long getAttributeAsLong(org.codehaus.plexus.configuration.PlexusConfiguration configuration, String name)
           
 long getAttributeAsLong(org.codehaus.plexus.configuration.PlexusConfiguration configuration, String name, long defaultValue)
           
 long getAttributeAsLong(String attr)
           
 long getAttributeAsLong(String attr, long defaultValue)
           
 String[] getAttributeNames()
           
 org.apache.avalon.framework.configuration.Configuration getChild(String child)
           
 org.apache.avalon.framework.configuration.Configuration getChild(String child, boolean value)
           
 org.apache.avalon.framework.configuration.Configuration[] getChildren()
           
 org.apache.avalon.framework.configuration.Configuration[] getChildren(String name)
           
 String getLocation()
           
 String getName()
           
 String getNamespace()
           
 String getPrefix()
           
 String getValue()
           
 String getValue(org.codehaus.plexus.configuration.PlexusConfiguration configuration, String defaultValue)
           
 String getValue(String defaultValue)
           
 boolean getValueAsBoolean()
           
 boolean getValueAsBoolean(boolean defaultValue)
           
 boolean getValueAsBoolean(org.codehaus.plexus.configuration.PlexusConfiguration configuration)
           
 boolean getValueAsBoolean(org.codehaus.plexus.configuration.PlexusConfiguration configuration, boolean defaultValue)
           
 double getValueAsDouble()
           
 double getValueAsDouble(double defaultValue)
           
 double getValueAsDouble(org.codehaus.plexus.configuration.PlexusConfiguration configuration)
           
 double getValueAsDouble(org.codehaus.plexus.configuration.PlexusConfiguration configuration, double defaultValue)
           
 float getValueAsFloat()
           
 float getValueAsFloat(float defaultValue)
           
 float getValueAsFloat(org.codehaus.plexus.configuration.PlexusConfiguration configuration)
           
 float getValueAsFloat(org.codehaus.plexus.configuration.PlexusConfiguration configuration, float defaultValue)
           
 int getValueAsInteger()
           
 int getValueAsInteger(int defaultValue)
           
 int getValueAsInteger(org.codehaus.plexus.configuration.PlexusConfiguration configuration)
           
 int getValueAsInteger(org.codehaus.plexus.configuration.PlexusConfiguration configuration, int defaultValue)
           
 long getValueAsLong()
           
 long getValueAsLong(long defaultValue)
           
 long getValueAsLong(org.codehaus.plexus.configuration.PlexusConfiguration configuration)
           
 long getValueAsLong(org.codehaus.plexus.configuration.PlexusConfiguration configuration, long defaultValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvalonConfiguration

public AvalonConfiguration(org.codehaus.plexus.configuration.PlexusConfiguration config)
Method Detail

getName

public String getName()
Specified by:
getName in interface org.apache.avalon.framework.configuration.Configuration
See Also:
Configuration.getName()

getLocation

public String getLocation()
Specified by:
getLocation in interface org.apache.avalon.framework.configuration.Configuration
See Also:
Configuration.getLocation()

getNamespace

public String getNamespace()
                    throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
getNamespace in interface org.apache.avalon.framework.configuration.Configuration
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
See Also:
Configuration.getNamespace()

getChild

public org.apache.avalon.framework.configuration.Configuration getChild(String child)
Specified by:
getChild in interface org.apache.avalon.framework.configuration.Configuration
See Also:
Configuration.getChild(java.lang.String)

getChild

public org.apache.avalon.framework.configuration.Configuration getChild(String child,
                                                                        boolean value)
Specified by:
getChild in interface org.apache.avalon.framework.configuration.Configuration
See Also:
Configuration.getChild(java.lang.String, boolean)

getChildren

public org.apache.avalon.framework.configuration.Configuration[] getChildren()
Specified by:
getChildren in interface org.apache.avalon.framework.configuration.Configuration
See Also:
Configuration.getChildren()

getChildren

public org.apache.avalon.framework.configuration.Configuration[] getChildren(String name)
Specified by:
getChildren in interface org.apache.avalon.framework.configuration.Configuration
See Also:
Configuration.getChildren(java.lang.String)

getAttributeNames

public String[] getAttributeNames()
Specified by:
getAttributeNames in interface org.apache.avalon.framework.configuration.Configuration
See Also:
Configuration.getAttributeNames()

getAttribute

public String getAttribute(String attr)
                    throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
getAttribute in interface org.apache.avalon.framework.configuration.Configuration
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
See Also:
Configuration.getAttribute(java.lang.String)

getAttributeAsInteger

public int getAttributeAsInteger(String attr)
                          throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
getAttributeAsInteger in interface org.apache.avalon.framework.configuration.Configuration
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
See Also:
Configuration.getAttributeAsInteger(java.lang.String)

getAttributeAsLong

public long getAttributeAsLong(String attr)
                        throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
getAttributeAsLong in interface org.apache.avalon.framework.configuration.Configuration
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
See Also:
Configuration.getAttributeAsLong(java.lang.String)

getAttributeAsFloat

public float getAttributeAsFloat(String attr)
                          throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
getAttributeAsFloat in interface org.apache.avalon.framework.configuration.Configuration
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
See Also:
Configuration.getAttributeAsFloat(java.lang.String)

getAttributeAsDouble

public double getAttributeAsDouble(String attr)
                            throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
getAttributeAsDouble in interface org.apache.avalon.framework.configuration.Configuration
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
See Also:
Configuration.getAttributeAsDouble(java.lang.String)

getAttributeAsBoolean

public boolean getAttributeAsBoolean(String attr)
                              throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
getAttributeAsBoolean in interface org.apache.avalon.framework.configuration.Configuration
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
See Also:
Configuration.getAttributeAsBoolean(java.lang.String)

getValue

public String getValue()
                throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
getValue in interface org.apache.avalon.framework.configuration.Configuration
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
See Also:
Configuration.getValue()

getValueAsInteger

public int getValueAsInteger()
                      throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
getValueAsInteger in interface org.apache.avalon.framework.configuration.Configuration
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
See Also:
Configuration.getValueAsInteger()

getValueAsFloat

public float getValueAsFloat()
                      throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
getValueAsFloat in interface org.apache.avalon.framework.configuration.Configuration
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
See Also:
Configuration.getValueAsFloat()

getValueAsDouble

public double getValueAsDouble()
                        throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
getValueAsDouble in interface org.apache.avalon.framework.configuration.Configuration
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
See Also:
Configuration.getValueAsDouble()

getValueAsBoolean

public boolean getValueAsBoolean()
                          throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
getValueAsBoolean in interface org.apache.avalon.framework.configuration.Configuration
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
See Also:
Configuration.getValueAsBoolean()

getValueAsLong

public long getValueAsLong()
                    throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
getValueAsLong in interface org.apache.avalon.framework.configuration.Configuration
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
See Also:
Configuration.getValueAsLong()

getValue

public String getValue(String defaultValue)
Specified by:
getValue in interface org.apache.avalon.framework.configuration.Configuration
See Also:
Configuration.getValue(java.lang.String)

getValueAsInteger

public int getValueAsInteger(int defaultValue)
Specified by:
getValueAsInteger in interface org.apache.avalon.framework.configuration.Configuration
See Also:
Configuration.getValueAsInteger(int)

getValueAsLong

public long getValueAsLong(long defaultValue)
Specified by:
getValueAsLong in interface org.apache.avalon.framework.configuration.Configuration
See Also:
Configuration.getValueAsLong(long)

getValueAsFloat

public float getValueAsFloat(float defaultValue)
Specified by:
getValueAsFloat in interface org.apache.avalon.framework.configuration.Configuration
See Also:
Configuration.getValueAsFloat(float)

getValueAsDouble

public double getValueAsDouble(double defaultValue)
Specified by:
getValueAsDouble in interface org.apache.avalon.framework.configuration.Configuration
See Also:
Configuration.getValueAsDouble(double)

getValueAsBoolean

public boolean getValueAsBoolean(boolean defaultValue)
Specified by:
getValueAsBoolean in interface org.apache.avalon.framework.configuration.Configuration
See Also:
Configuration.getValueAsBoolean(boolean)

getAttribute

public String getAttribute(String attr,
                           String defaultValue)
Specified by:
getAttribute in interface org.apache.avalon.framework.configuration.Configuration
See Also:
Configuration.getAttribute(java.lang.String, java.lang.String)

getAttributeAsInteger

public int getAttributeAsInteger(String attr,
                                 int defaultValue)
Specified by:
getAttributeAsInteger in interface org.apache.avalon.framework.configuration.Configuration
See Also:
Configuration.getAttributeAsInteger(java.lang.String, int)

getAttributeAsLong

public long getAttributeAsLong(String attr,
                               long defaultValue)
Specified by:
getAttributeAsLong in interface org.apache.avalon.framework.configuration.Configuration
See Also:
Configuration.getAttributeAsLong(java.lang.String, long)

getAttributeAsFloat

public float getAttributeAsFloat(String attr,
                                 float defaultValue)
Specified by:
getAttributeAsFloat in interface org.apache.avalon.framework.configuration.Configuration
See Also:
Configuration.getAttributeAsFloat(java.lang.String, float)

getAttributeAsDouble

public double getAttributeAsDouble(String attr,
                                   double defaultValue)
Specified by:
getAttributeAsDouble in interface org.apache.avalon.framework.configuration.Configuration
See Also:
Configuration.getAttributeAsDouble(java.lang.String, double)

getAttributeAsBoolean

public boolean getAttributeAsBoolean(String attr,
                                     boolean defaultValue)
Specified by:
getAttributeAsBoolean in interface org.apache.avalon.framework.configuration.Configuration
See Also:
Configuration.getAttributeAsBoolean(java.lang.String, boolean)

getPrefix

public String getPrefix()

getValueAsInteger

public int getValueAsInteger(org.codehaus.plexus.configuration.PlexusConfiguration configuration)
                      throws org.codehaus.plexus.configuration.PlexusConfigurationException
Throws:
org.codehaus.plexus.configuration.PlexusConfigurationException

getValueAsInteger

public int getValueAsInteger(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
                             int defaultValue)

getValueAsLong

public long getValueAsLong(org.codehaus.plexus.configuration.PlexusConfiguration configuration)
                    throws org.codehaus.plexus.configuration.PlexusConfigurationException
Throws:
org.codehaus.plexus.configuration.PlexusConfigurationException

getValueAsLong

public long getValueAsLong(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
                           long defaultValue)

getValueAsFloat

public float getValueAsFloat(org.codehaus.plexus.configuration.PlexusConfiguration configuration)
                      throws org.codehaus.plexus.configuration.PlexusConfigurationException
Throws:
org.codehaus.plexus.configuration.PlexusConfigurationException

getValueAsDouble

public double getValueAsDouble(org.codehaus.plexus.configuration.PlexusConfiguration configuration)
                        throws org.codehaus.plexus.configuration.PlexusConfigurationException
Throws:
org.codehaus.plexus.configuration.PlexusConfigurationException

getValueAsFloat

public float getValueAsFloat(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
                             float defaultValue)

getValueAsDouble

public double getValueAsDouble(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
                               double defaultValue)

getValueAsBoolean

public boolean getValueAsBoolean(org.codehaus.plexus.configuration.PlexusConfiguration configuration)
                          throws org.codehaus.plexus.configuration.PlexusConfigurationException
Throws:
org.codehaus.plexus.configuration.PlexusConfigurationException

getValueAsBoolean

public boolean getValueAsBoolean(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
                                 boolean defaultValue)

getValue

public String getValue(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
                       String defaultValue)

getAttributeAsInteger

public int getAttributeAsInteger(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
                                 String name)
                          throws org.codehaus.plexus.configuration.PlexusConfigurationException
Throws:
org.codehaus.plexus.configuration.PlexusConfigurationException

getAttributeAsInteger

public int getAttributeAsInteger(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
                                 String name,
                                 int defaultValue)

getAttributeAsLong

public long getAttributeAsLong(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
                               String name)
                        throws org.codehaus.plexus.configuration.PlexusConfigurationException
Throws:
org.codehaus.plexus.configuration.PlexusConfigurationException

getAttributeAsLong

public long getAttributeAsLong(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
                               String name,
                               long defaultValue)

getAttributeAsFloat

public float getAttributeAsFloat(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
                                 String name)
                          throws org.codehaus.plexus.configuration.PlexusConfigurationException
Throws:
org.codehaus.plexus.configuration.PlexusConfigurationException

getAttributeAsDouble

public double getAttributeAsDouble(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
                                   String name)
                            throws org.codehaus.plexus.configuration.PlexusConfigurationException
Throws:
org.codehaus.plexus.configuration.PlexusConfigurationException

getAttributeAsFloat

public float getAttributeAsFloat(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
                                 String name,
                                 float defaultValue)

getAttributeAsDouble

public double getAttributeAsDouble(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
                                   String name,
                                   double defaultValue)

getAttributeAsBoolean

public boolean getAttributeAsBoolean(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
                                     String name)
                              throws org.codehaus.plexus.configuration.PlexusConfigurationException
Throws:
org.codehaus.plexus.configuration.PlexusConfigurationException

getAttributeAsBoolean

protected boolean getAttributeAsBoolean(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
                                        String name,
                                        boolean defaultValue)

getAttribute

public String getAttribute(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
                           String name,
                           String defaultValue)


Copyright © 2001-2012 Codehaus. All Rights Reserved.