org.apache.commons.digester.substitution
public class VariableSubstitutor extends Substitutor
Since: 1.6
Constructor Summary | |
---|---|
VariableSubstitutor(VariableExpander expander)
Constructs a Substitutor which uses the same VariableExpander for both
body text and attibutes. | |
VariableSubstitutor(VariableExpander attributesExpander, VariableExpander bodyTextExpander)
Constructs a Substitutor. |
Method Summary | |
---|---|
Attributes | substitute(Attributes attributes)
Substitutes the attributes (before they are passed to the
Rule implementations's) |
String | substitute(String bodyText)
Substitutes for the body text.
|
Parameters: expander VariableExpander implementation, null if no substitutions are to be performed
Parameters: attributesExpander VariableExpander implementation to be used for attributes, null if no attribute substitutions are to be performed bodyTextExpander VariableExpander implementation to be used for bodyTextExpander, null if no attribute substitutions are to be performed
Rule
implementations's)Parameters: bodyText the body text (as passed to Digester
)
Returns: the body text to be passed to the Rule
implementations