|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.avalon.framework.configuration.AbstractConfiguration
org.apache.avalon.framework.configuration.DefaultConfiguration
org.apache.cocoon.components.PropertyAwareConfiguration
Property Aware Configuration.
This component extends the DefaultConfiguration
by suppporting configurations that can contain placeholders for System Properties.
| Field Summary |
| Fields inherited from class org.apache.avalon.framework.configuration.DefaultConfiguration |
EMPTY_ARRAY |
| Constructor Summary | |
PropertyAwareConfiguration(Configuration config,
boolean deepCopy,
Settings settings,
Logger logger)
Copy constructor, to create a clone of another configuration. |
|
PropertyAwareConfiguration(Configuration config,
Settings settings,
Logger logger)
Shallow copy constructor, suitable for craeting a writable clone of a read-only configuration. |
|
PropertyAwareConfiguration(DefaultConfiguration config,
Settings settings,
Logger logger)
Create a new DefaultConfiguration instance. |
|
PropertyAwareConfiguration(String name,
Settings settings,
Logger logger)
Create a new DefaultConfiguration instance. |
|
PropertyAwareConfiguration(String name,
String location,
Settings settings,
Logger logger)
Create a new DefaultConfiguration instance. |
|
PropertyAwareConfiguration(String name,
String location,
String ns,
String prefix,
Settings settings,
Logger logger)
Create a new DefaultConfiguration instance. |
|
| Method Summary | |
void |
setAttribute(String name,
String value)
Set the value of the specified attribute to the specified string. |
void |
setValue(String value)
Set the value of this Configuration object to the specified string. |
| Methods inherited from class org.apache.avalon.framework.configuration.DefaultConfiguration |
addAll, addAll, addAllAttributes, addAllChildren, addAllChildren, addAttribute, addChild, appendValueData, checkWriteable, equals, getAttribute, getAttributeNames, getChild, getChildCount, getChildren, getChildren, getLocation, getMutableChild, getMutableChild, getMutableChildren, getMutableChildren, getName, getNamespace, getPrefix, getValue, getValue, hashCode, isReadOnly, makeReadOnly, removeChild, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setValue, setValue, setValue, setValue, setValue |
| Methods inherited from class org.apache.avalon.framework.configuration.AbstractConfiguration |
getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDouble, getAttributeAsDouble, getAttributeAsFloat, getAttributeAsFloat, getAttributeAsInteger, getAttributeAsInteger, getAttributeAsLong, getAttributeAsLong, getChild, getValueAsBoolean, getValueAsBoolean, getValueAsDouble, getValueAsDouble, getValueAsFloat, getValueAsFloat, getValueAsInteger, getValueAsInteger, getValueAsLong, getValueAsLong, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.avalon.framework.configuration.Configuration |
getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDouble, getAttributeAsDouble, getAttributeAsFloat, getAttributeAsFloat, getAttributeAsInteger, getAttributeAsInteger, getAttributeAsLong, getAttributeAsLong, getChild, getValueAsBoolean, getValueAsBoolean, getValueAsDouble, getValueAsDouble, getValueAsFloat, getValueAsFloat, getValueAsInteger, getValueAsInteger, getValueAsLong, getValueAsLong |
| Constructor Detail |
public PropertyAwareConfiguration(Configuration config,
boolean deepCopy,
Settings settings,
Logger logger)
throws ConfigurationException
getChild(),
removeChild() and addChild().
config - the Configuration to copydeepCopy - true will cause clones of the children to be added,
false will add the original instances and is thus
faster.settings - The Settings to use when resolving tokenslogger - A Logger to use
ConfigurationException - if an error occurs when copying
public PropertyAwareConfiguration(Configuration config,
Settings settings,
Logger logger)
throws ConfigurationException
getChild(),
removeChild() and addChild().
config - the Configuration to copysettings - The Settings to use when resolving tokenslogger - A Logger to use
ConfigurationException - if an error occurs when copying
public PropertyAwareConfiguration(String name,
Settings settings,
Logger logger)
DefaultConfiguration instance.
name - a String value
public PropertyAwareConfiguration(String name,
String location,
Settings settings,
Logger logger)
DefaultConfiguration instance.
name - a String valuelocation - a String valuesettings - The Settings to use when resolving tokenslogger - A Logger to use
public PropertyAwareConfiguration(String name,
String location,
String ns,
String prefix,
Settings settings,
Logger logger)
DefaultConfiguration instance.
name - config node namelocation - Builder-specific locator stringns - Namespace string (typically a URI). Should not be null; use ""
if no namespace.prefix - A short string prefixed to element names, associating
elements with a longer namespace string. Should not be null; use "" if no
namespace.settings - The Settings to use when resolving tokenslogger - A Logger to use
public PropertyAwareConfiguration(DefaultConfiguration config,
Settings settings,
Logger logger)
throws ConfigurationException
DefaultConfiguration instance.
config - A DefaultConfigurationsettings - The Settings to use when resolving tokenslogger - A Logger to use| Method Detail |
public void setValue(String value)
Configuration object to the specified string.
value - a String value
public void setAttribute(String name,
String value)
name - name of the attribute to setvalue - a String value
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||