public class CompoundSubstitutor extends Substitutor
a
and b
.
All values to substitute are first handled by a
and passed to
b
afterwards.Constructor and Description |
---|
CompoundSubstitutor(Substitutor a,
Substitutor b)
Creates a new CompoundSubstitutor instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public CompoundSubstitutor(Substitutor a, Substitutor b)
substitute()
are first handled by a
and passed to b
afterwards.
Both Substitutor have to be not null.a
- Substitutor ab
- Substitutor bpublic Attributes substitute(Attributes attributes)
Substitutes the attributes (before they are passed to the Rule
implementations's).
Digester
will only call this method a second time once the original Attributes
instance
can be safely reused. The implementation is therefore free to reuse the same Attributes
instance for
all calls.
substitute
in class Substitutor
attributes
- the Attributes
passed into Digester
by the SAX parser, not null (but
may be empty)Attributes
to be passed to the Rule
implementations. This method may pass back
the Attributes passed in. Not null but possibly empty.public String substitute(String bodyText)
substitute
in class Substitutor
bodyText
- the body text (as passed to Digester
)Rule
implementationsCopyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.