| java.lang.Object org.apache.commons.digester.Substitutor org.apache.commons.digester.substitution.VariableSubstitutor
VariableSubstitutor | public class VariableSubstitutor extends Substitutor (Code) | | Substitutor implementation that support variable replacement
for both attributes and body text.
The actual expansion of variables into text is delegated to
VariableExpander implementations.
Supports setting an expander just for body text or just for attributes.
Also supported is setting no expanders for body text and for attributes.
since: 1.6 |
VariableSubstitutor | public VariableSubstitutor(VariableExpander expander)(Code) | | Constructs a Substitutor which uses the same VariableExpander for both
body text and attibutes.
Parameters: expander - VariableExpander implementation, null if no substitutions are to be performed |
VariableSubstitutor | public VariableSubstitutor(VariableExpander attributesExpander, VariableExpander bodyTextExpander)(Code) | | Constructs a Substitutor.
Parameters: attributesExpander - VariableExpander implementation to be used for attributes, null if no attribute substitutions are to be performed Parameters: bodyTextExpander - VariableExpander implementation to be used for bodyTextExpander, null if no attribute substitutions are to be performed |
substitute | public Attributes substitute(Attributes attributes)(Code) | | Substitutes the attributes (before they are passed to the
Rule implementations's)
|
substitute | public String substitute(String bodyText)(Code) | | Substitutes for the body text.
This method may substitute values into the body text of the
elements that Digester parses.
Parameters: bodyText - the body text (as passed to Digester ) the body text to be passed to the Rule implementations |
|
|