public class CompositeTextResolver extends java.lang.Object implements TextReplacement.TextResolver
Constructor and Description |
---|
CompositeTextResolver(TextReplacement.TextResolver... resolvers) |
Modifier and Type | Method and Description |
---|---|
void |
add(TextReplacement.TextResolver resolver)
Add a new resolver to the list
|
java.lang.String |
resolve(java.lang.String in)
Resolve the replacement using the first resolvers that returns a non-empty value.
|
public CompositeTextResolver(TextReplacement.TextResolver... resolvers)
public void add(TextReplacement.TextResolver resolver)
resolver
- public java.lang.String resolve(java.lang.String in)
resolve
in interface TextReplacement.TextResolver
in
-