public class RegexReplacer extends ConfigurableFunctor
IFunctor to replace substrings.
The IFunctor assumes the first argument to be the string to be
replaced.
The substrings to be replaced are defined using regular expressions. The list
of replacements to be made is provided in the configuration element using the
child elements with the name replace. The regex
attribute defines the regular expression. The replacement
attribute defines the replacement string.
| Constructor and Description |
|---|
RegexReplacer() |
| Modifier and Type | Method and Description |
|---|---|
Object |
perform(IFunctorCall call)
Perform the encapsulated business logic in the context defined in "call".
|
configure, getElementpublic Object perform(IFunctorCall call) throws FunctorInvocationException
IFunctorcall - The call contextFunctorInvocationException - An exception that raised while executing the business logic
will be wrapped in a FunctorInvocationException.Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.