public interface Replaceable
A Replaceable
component will get asked for tokens, that should be used
in a search. These tokens will then be matched against a user given search
string.
Modifier and Type | Method and Description |
---|---|
int |
replace(String regex,
String replaceBy,
boolean caseSensitive)
Replace in object by replaceBy
|
int replace(String regex, String replaceBy, boolean caseSensitive) throws Exception
regex
- Regular expression to search forreplaceBy
- Text used as replacementcaseSensitive
- flag, whether search should be done case sensitiveException
- when something fails while replacingCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.