|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.digester3.Substitutor
org.apache.commons.digester3.substitution.CompoundSubstitutor
public class CompoundSubstitutor
This Substitutor chains two Substitutors a and b.
All values to substitute are first handled by a and passed to
b afterwards.
| Constructor Summary | |
|---|---|
CompoundSubstitutor(Substitutor a,
Substitutor b)
Creates a new CompoundSubstitutor instance. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 b| Method Detail |
|---|
public 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 Substitutorattributes - 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 SubstitutorbodyText - the body text (as passed to Digester)
Rule implementations
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||