org.codehaus.plexus.personality.avalon
Class AvalonConfiguration
java.lang.Object
org.codehaus.plexus.personality.avalon.AvalonConfiguration
- All Implemented Interfaces:
- org.apache.avalon.framework.configuration.Configuration
- public class AvalonConfiguration
- extends java.lang.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 |
java.lang.String |
getAttribute(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
java.lang.String name,
java.lang.String defaultValue)
|
java.lang.String |
getAttribute(java.lang.String attr)
|
java.lang.String |
getAttribute(java.lang.String attr,
java.lang.String defaultValue)
|
boolean |
getAttributeAsBoolean(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
java.lang.String name)
|
protected boolean |
getAttributeAsBoolean(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
java.lang.String name,
boolean defaultValue)
|
boolean |
getAttributeAsBoolean(java.lang.String attr)
|
boolean |
getAttributeAsBoolean(java.lang.String attr,
boolean defaultValue)
|
double |
getAttributeAsDouble(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
java.lang.String name)
|
double |
getAttributeAsDouble(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
java.lang.String name,
double defaultValue)
|
double |
getAttributeAsDouble(java.lang.String attr)
|
double |
getAttributeAsDouble(java.lang.String attr,
double defaultValue)
|
float |
getAttributeAsFloat(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
java.lang.String name)
|
float |
getAttributeAsFloat(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
java.lang.String name,
float defaultValue)
|
float |
getAttributeAsFloat(java.lang.String attr)
|
float |
getAttributeAsFloat(java.lang.String attr,
float defaultValue)
|
int |
getAttributeAsInteger(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
java.lang.String name)
|
int |
getAttributeAsInteger(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
java.lang.String name,
int defaultValue)
|
int |
getAttributeAsInteger(java.lang.String attr)
|
int |
getAttributeAsInteger(java.lang.String attr,
int defaultValue)
|
long |
getAttributeAsLong(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
java.lang.String name)
|
long |
getAttributeAsLong(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
java.lang.String name,
long defaultValue)
|
long |
getAttributeAsLong(java.lang.String attr)
|
long |
getAttributeAsLong(java.lang.String attr,
long defaultValue)
|
java.lang.String[] |
getAttributeNames()
|
org.apache.avalon.framework.configuration.Configuration |
getChild(java.lang.String child)
|
org.apache.avalon.framework.configuration.Configuration |
getChild(java.lang.String child,
boolean value)
|
org.apache.avalon.framework.configuration.Configuration[] |
getChildren()
|
org.apache.avalon.framework.configuration.Configuration[] |
getChildren(java.lang.String name)
|
java.lang.String |
getLocation()
|
java.lang.String |
getName()
|
java.lang.String |
getNamespace()
|
java.lang.String |
getPrefix()
|
java.lang.String |
getValue()
|
java.lang.String |
getValue(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
java.lang.String defaultValue)
|
java.lang.String |
getValue(java.lang.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 |
AvalonConfiguration
public AvalonConfiguration(org.codehaus.plexus.configuration.PlexusConfiguration config)
getName
public java.lang.String getName()
- Specified by:
getName
in interface org.apache.avalon.framework.configuration.Configuration
- See Also:
Configuration.getName()
getLocation
public java.lang.String getLocation()
- Specified by:
getLocation
in interface org.apache.avalon.framework.configuration.Configuration
- See Also:
Configuration.getLocation()
getNamespace
public java.lang.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(java.lang.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(java.lang.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(java.lang.String name)
- Specified by:
getChildren
in interface org.apache.avalon.framework.configuration.Configuration
- See Also:
Configuration.getChildren(java.lang.String)
getAttributeNames
public java.lang.String[] getAttributeNames()
- Specified by:
getAttributeNames
in interface org.apache.avalon.framework.configuration.Configuration
- See Also:
Configuration.getAttributeNames()
getAttribute
public java.lang.String getAttribute(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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 java.lang.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 java.lang.String getValue(java.lang.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 java.lang.String getAttribute(java.lang.String attr,
java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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 java.lang.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 java.lang.String getValue(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
java.lang.String defaultValue)
getAttributeAsInteger
public int getAttributeAsInteger(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
java.lang.String name)
throws org.codehaus.plexus.configuration.PlexusConfigurationException
- Throws:
org.codehaus.plexus.configuration.PlexusConfigurationException
getAttributeAsInteger
public int getAttributeAsInteger(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
java.lang.String name,
int defaultValue)
getAttributeAsLong
public long getAttributeAsLong(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
java.lang.String name)
throws org.codehaus.plexus.configuration.PlexusConfigurationException
- Throws:
org.codehaus.plexus.configuration.PlexusConfigurationException
getAttributeAsLong
public long getAttributeAsLong(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
java.lang.String name,
long defaultValue)
getAttributeAsFloat
public float getAttributeAsFloat(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
java.lang.String name)
throws org.codehaus.plexus.configuration.PlexusConfigurationException
- Throws:
org.codehaus.plexus.configuration.PlexusConfigurationException
getAttributeAsDouble
public double getAttributeAsDouble(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
java.lang.String name)
throws org.codehaus.plexus.configuration.PlexusConfigurationException
- Throws:
org.codehaus.plexus.configuration.PlexusConfigurationException
getAttributeAsFloat
public float getAttributeAsFloat(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
java.lang.String name,
float defaultValue)
getAttributeAsDouble
public double getAttributeAsDouble(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
java.lang.String name,
double defaultValue)
getAttributeAsBoolean
public boolean getAttributeAsBoolean(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
java.lang.String name)
throws org.codehaus.plexus.configuration.PlexusConfigurationException
- Throws:
org.codehaus.plexus.configuration.PlexusConfigurationException
getAttributeAsBoolean
protected boolean getAttributeAsBoolean(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
java.lang.String name,
boolean defaultValue)
getAttribute
public java.lang.String getAttribute(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
java.lang.String name,
java.lang.String defaultValue)
Copyright © 2001-2007 Codehaus. All Rights Reserved.