public class RuleRegexReplace
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RuleRegexReplace.Replace
Represents one replacement regex.
|
Constructor and Description |
---|
RuleRegexReplace() |
Modifier and Type | Method and Description |
---|---|
void |
addReplacement(java.lang.String from,
java.lang.String to) |
java.lang.String |
apply(java.lang.String value)
Apply all the regex on the attribute value or CDATA content.
|
java.util.List<RuleRegexReplace.Replace> |
getReplacements()
Return the list of replacements.
|
boolean |
isEmpty()
Return true if there are no replacements.
|
public void addReplacement(java.lang.String from, java.lang.String to) throws java.util.regex.PatternSyntaxException
java.util.regex.PatternSyntaxException
public java.lang.String apply(java.lang.String value)
value
- the attribute value or CDATA contentpublic java.util.List<RuleRegexReplace.Replace> getReplacements()
public boolean isEmpty()
Copyright © 2024 HervĂ© Girod. All Rights Reserved. Documentation and source under the BSD licence