| org.apache.cocoon.components.PropertyAwareConfiguration
PropertyAwareConfiguration | public class PropertyAwareConfiguration extends DefaultConfiguration (Code) | | Property Aware Configuration.
This component extends the
DefaultConfiguration by suppporting configurations that can contain placeholders for System Properties.
version: SVN $Id: $ |
Constructor Summary | |
public | PropertyAwareConfiguration(Configuration config, boolean deepCopy, Settings settings, Logger logger) Copy constructor, to create a clone of another configuration. | public | PropertyAwareConfiguration(Configuration config, Settings settings, Logger logger) Shallow copy constructor, suitable for craeting a writable clone of
a read-only configuration. | public | PropertyAwareConfiguration(String name, Settings settings, Logger logger) Create a new DefaultConfiguration instance. | public | PropertyAwareConfiguration(String name, String location, Settings settings, Logger logger) Create a new DefaultConfiguration instance. | public | PropertyAwareConfiguration(String name, String location, String ns, String prefix, Settings settings, Logger logger) Create a new DefaultConfiguration instance.
Parameters: name - config node name Parameters: location - Builder-specific locator string Parameters: ns - Namespace string (typically a URI). | public | PropertyAwareConfiguration(DefaultConfiguration config, Settings settings, Logger logger) Create a new DefaultConfiguration instance. |
Method Summary | |
public void | setAttribute(String name, String value) Set the value of the specified attribute to the specified string. | public void | setValue(String value) Set the value of this Configuration object to the specified string. |
PropertyAwareConfiguration | public PropertyAwareConfiguration(Configuration config, boolean deepCopy, Settings settings, Logger logger) throws ConfigurationException(Code) | | Copy constructor, to create a clone of another configuration.
To modify children, use getChild() ,
removeChild() and addChild() .
Parameters: config - the Configuration to copy Parameters: deepCopy - true will cause clones of the children to be added,false will add the original instances and is thusfaster. Parameters: settings - The Settings to use when resolving tokens Parameters: logger - A Logger to use throws: ConfigurationException - if an error occurs when copying |
PropertyAwareConfiguration | public PropertyAwareConfiguration(Configuration config, Settings settings, Logger logger) throws ConfigurationException(Code) | | Shallow copy constructor, suitable for craeting a writable clone of
a read-only configuration. To modify children, use getChild() ,
removeChild() and addChild() .
Parameters: config - the Configuration to copy Parameters: settings - The Settings to use when resolving tokens Parameters: logger - A Logger to use throws: ConfigurationException - if an error occurs when copying |
PropertyAwareConfiguration | public PropertyAwareConfiguration(String name, Settings settings, Logger logger)(Code) | | Create a new DefaultConfiguration instance.
Parameters: name - a String value |
PropertyAwareConfiguration | public PropertyAwareConfiguration(String name, String location, Settings settings, Logger logger)(Code) | | Create a new DefaultConfiguration instance.
Parameters: name - a String value Parameters: location - a String value Parameters: settings - The Settings to use when resolving tokens Parameters: logger - A Logger to use |
PropertyAwareConfiguration | public PropertyAwareConfiguration(String name, String location, String ns, String prefix, Settings settings, Logger logger)(Code) | | Create a new DefaultConfiguration instance.
Parameters: name - config node name Parameters: location - Builder-specific locator string Parameters: ns - Namespace string (typically a URI). Should not be null; use ""if no namespace. Parameters: prefix - A short string prefixed to element names, associatingelements with a longer namespace string. Should not be null; use "" if nonamespace. Parameters: settings - The Settings to use when resolving tokens Parameters: logger - A Logger to use |
PropertyAwareConfiguration | public PropertyAwareConfiguration(DefaultConfiguration config, Settings settings, Logger logger) throws ConfigurationException(Code) | | Create a new DefaultConfiguration instance.
Parameters: config - A DefaultConfiguration Parameters: settings - The Settings to use when resolving tokens Parameters: logger - A Logger to use |
setAttribute | public void setAttribute(String name, String value)(Code) | | Set the value of the specified attribute to the specified string.
Parameters: name - name of the attribute to set Parameters: value - a String value |
setValue | public void setValue(String value)(Code) | | Set the value of this Configuration object to the specified string.
Parameters: value - a String value |
|
|