Class RegexComponent
java.lang.Object
com.codingchili.core.configuration.RegexComponent
Contains settings used for a single regex validator action.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsetAction(RegexAction action)
setExpression(String expression)
setSubstitution(String substitution)
-
Constructor Details
-
RegexComponent
public RegexComponent()
-
-
Method Details
-
getAction
- Returns:
- the type of action to be taken whenever the regex matches.
-
setAction
- Parameters:
action
- the type of action to be taken whenever the regex matches.- Returns:
- fluent.
-
getExpression
- Returns:
- the regular expression.
-
setExpression
- Parameters:
expression
- the regular expression used for matching input.- Returns:
- fluent.
-
getSubstitution
- Returns:
- the replacement text used when action is
RegexAction.SUBSTITUTE
.
-
setSubstitution
- Parameters:
substitution
- the replacement text to use when the expression matches the input andRegexAction.SUBSTITUTE
is used.- Returns:
- fluent.
-