Package | Description |
---|---|
org.apache.avalon.framework.configuration |
Component configuration interfaces and XML-based implementations.
|
org.apache.avalon.framework.container |
Utilities supporting execution of component lifecycle stages.
|
org.apache.avalon.framework.parameters |
Interfaces supporting the supply of flat configuration information.
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultConfiguration.addAll(Configuration other,
boolean deepCopy)
Add all the attributes, children and value
from specified configuration element to current
configuration element.
|
void |
DefaultConfiguration.addAllChildren(Configuration other,
boolean deepCopy)
Add all child
Configuration objects from specified
configuration element to current configuration element. |
Configuration |
DefaultConfigurationBuilder.build(InputSource input)
Build a configuration object using an XML InputSource object
|
Configuration |
DefaultConfigurationBuilder.build(InputStream inputStream)
Build a configuration object using an InputStream.
|
Configuration |
DefaultConfigurationBuilder.build(InputStream inputStream,
String systemId)
Build a configuration object using an InputStream;
supplying a systemId to make messages about all
kinds of errors more meaningfull.
|
Configuration |
DefaultConfigurationBuilder.build(String uri)
Build a configuration object using an URI
|
Configuration |
DefaultConfigurationBuilder.buildFromFile(File file)
Build a configuration object from a file using a File object.
|
Configuration |
DefaultConfigurationBuilder.buildFromFile(String filename)
Build a configuration object from a file using a filename.
|
void |
Configurable.configure(Configuration configuration)
Pass the
Configuration to the Configurable
class. |
String |
DefaultConfiguration.getAttribute(String name)
Returns the value of the attribute specified by its name as a
String . |
String |
DefaultImmutableConfiguration.getAttribute(String name)
Returns the value of the attribute specified by its name as a
String . |
String |
Configuration.getAttribute(String paramName)
Return the value of specified attribute.
|
boolean |
AbstractConfiguration.getAttributeAsBoolean(String name)
Returns the value of the attribute specified by its name as a
boolean . |
boolean |
Configuration.getAttributeAsBoolean(String paramName)
Return the
boolean value of the specified parameter contained
in this node. |
double |
AbstractConfiguration.getAttributeAsDouble(String name)
Returns the value of the attribute specified by its name as a
double . |
double |
Configuration.getAttributeAsDouble(String paramName)
Return the
double value of the specified parameter contained
in this node. |
float |
AbstractConfiguration.getAttributeAsFloat(String name)
Returns the value of the attribute specified by its name as a
float . |
float |
Configuration.getAttributeAsFloat(String paramName)
Return the
float value of the specified parameter contained
in this node. |
int |
AbstractConfiguration.getAttributeAsInteger(String name)
Returns the value of the attribute specified by its name as an
int . |
int |
Configuration.getAttributeAsInteger(String paramName)
Return the
int value of the specified attribute contained
in this node. |
long |
AbstractConfiguration.getAttributeAsLong(String name)
Returns the value of the attribute specified by its name as a
long . |
long |
Configuration.getAttributeAsLong(String name)
Returns the value of the attribute specified by its name as a
long . |
MutableConfiguration |
MutableConfiguration.getMutableChild(String name)
Equivalent to
getMutableChild( name, true ) |
MutableConfiguration |
DefaultConfiguration.getMutableChild(String name) |
MutableConfiguration |
MutableConfiguration.getMutableChild(String name,
boolean autoCreate)
Gets a child node of this configuration.
|
MutableConfiguration |
DefaultConfiguration.getMutableChild(String name,
boolean autoCreate) |
MutableConfiguration[] |
MutableConfiguration.getMutableChildren()
Returns an array of mutable children.
|
MutableConfiguration[] |
DefaultConfiguration.getMutableChildren() |
MutableConfiguration[] |
MutableConfiguration.getMutableChildren(String name)
Returns an array of mutable children with the given name.
|
MutableConfiguration[] |
DefaultConfiguration.getMutableChildren(String name) |
String |
DefaultConfiguration.getNamespace()
Returns the namespace of this configuration element
|
String |
DefaultImmutableConfiguration.getNamespace()
Returns the namespace of this configuration element
|
String |
Configuration.getNamespace()
Returns a string indicating which namespace this Configuration node
belongs to.
|
protected String |
DefaultConfiguration.getPrefix()
Returns the prefix of the namespace
|
protected abstract String |
AbstractConfiguration.getPrefix()
Returns the prefix of the namespace.
|
protected String |
DefaultImmutableConfiguration.getPrefix()
Returns the prefix of the namespace
|
String |
DefaultConfiguration.getValue()
Returns the value of the configuration element as a
String . |
String |
DefaultImmutableConfiguration.getValue()
Returns the value of the configuration element as a
String . |
String |
Configuration.getValue()
Return the
String value of the node. |
boolean |
AbstractConfiguration.getValueAsBoolean()
Returns the value of the configuration element as a
boolean . |
boolean |
Configuration.getValueAsBoolean()
Return the
boolean value of the node. |
double |
AbstractConfiguration.getValueAsDouble()
Returns the value of the configuration element as a
double . |
double |
Configuration.getValueAsDouble()
Return the
double value of the node. |
float |
AbstractConfiguration.getValueAsFloat()
Returns the value of the configuration element as a
float . |
float |
Configuration.getValueAsFloat()
Return the
float value of the node. |
int |
AbstractConfiguration.getValueAsInteger()
Returns the value of the configuration element as an
int . |
int |
Configuration.getValueAsInteger()
Return the
int value of the node. |
long |
AbstractConfiguration.getValueAsLong()
Returns the value of the configuration element as a
long . |
long |
Configuration.getValueAsLong()
Return the
long value of the node. |
void |
Reconfigurable.reconfigure(Configuration configuration)
Describe
reconfigure method here. |
String |
DefaultConfigurationSerializer.serialize(Configuration source)
Serialize the configuration object to a string
|
void |
DefaultConfigurationSerializer.serialize(ContentHandler handler,
Configuration source)
Serialize the configuration to a ContentHandler
|
void |
DefaultConfigurationSerializer.serialize(OutputStream outputStream,
Configuration source)
Serialize the configuration object to an output stream.
|
void |
DefaultConfigurationSerializer.serialize(String uri,
Configuration source)
Serialize the configuration object to an output stream derived from an
URI.
|
protected void |
DefaultConfigurationSerializer.serializeElement(ContentHandler handler,
NamespaceSupport namespaceSupport,
Configuration element)
Serialize each Configuration element.
|
void |
DefaultConfigurationSerializer.serializeToFile(File file,
Configuration source)
Serialize the configuration object to a file using a File object.
|
void |
DefaultConfigurationSerializer.serializeToFile(String filename,
Configuration source)
Serialize the configuration object to a file using a filename.
|
Constructor and Description |
---|
DefaultConfiguration(Configuration config)
Shallow copy constructor, suitable for craeting a writable clone of
a read-only configuration.
|
DefaultConfiguration(Configuration config,
boolean deepCopy)
Copy constructor, to create a clone of another configuration.
|
DefaultImmutableConfiguration(Configuration config)
Deep copy constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
ContainerUtil.configure(Object object,
Configuration configuration)
Configure specified object if it implements the
Configurable interface. |
Modifier and Type | Method and Description |
---|---|
static Parameters |
Parameters.fromConfiguration(Configuration configuration)
Create a
Parameters object from a Configuration
object. |
static Parameters |
Parameters.fromConfiguration(Configuration configuration,
String elementName)
Create a
Parameters object from a Configuration
object using the supplied element name. |
Copyright © 2022. All rights reserved.