| java.lang.Object org.apache.cocoon.transformation.helpers.VariableConfiguration
VariableConfiguration | public class VariableConfiguration (Code) | | An Avalon Configuration factory that allows {variables} to be
replaced with values from a lookup table.
author: Jeff Turner version: CVS $Id: VariableConfiguration.java 433543 2006-08-22 06:22:54Z crossley $ |
Constructor Summary | |
public | VariableConfiguration(Configuration conf) Constructor.
Parameters: conf - Template Configuration with {variables} to marking wherevalues should be interpolated. |
Method Summary | |
public void | addVariable(String name, String value) Add a name-value pair. | public void | addVariables(Parameters params) Add a set of name-value pairs. | public Configuration | getConfiguration() Get a generated Configuration with interpolated variable values. |
VariableConfiguration | public VariableConfiguration(Configuration conf)(Code) | | Constructor.
Parameters: conf - Template Configuration with {variables} to marking wherevalues should be interpolated. May be null . |
addVariable | public void addVariable(String name, String value)(Code) | | Add a name-value pair.
|
addVariables | public void addVariables(Parameters params)(Code) | | Add a set of name-value pairs.
|
getConfiguration | public Configuration getConfiguration() throws SAXException, ConfigurationException(Code) | | Get a generated Configuration with interpolated variable values.
The Configuration passed in the constructor, with {variable}tokens in attributes and element bodies replaced with values (ifspecified), or null . |
|
|