Class MoneyRuleValidator
java.lang.Object
com.broadleafcommerce.data.tracking.core.mapping.validation.rules.AbstractRegexRuleValidator
com.broadleafcommerce.data.tracking.core.mapping.validation.rules.MoneyRuleValidator
- All Implemented Interfaces:
RuleValidator
,org.springframework.core.Ordered
Validate a SPEL expression that compares a variable against a money numeric literal
- Author:
- Jeff Fischer
-
Field Summary
Fields inherited from class com.broadleafcommerce.data.tracking.core.mapping.validation.rules.AbstractRegexRuleValidator
pattern
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Methods inherited from class com.broadleafcommerce.data.tracking.core.mapping.validation.rules.AbstractRegexRuleValidator
getPattern, init, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.validation.rules.RuleValidator
getOrder
-
Field Details
-
MONEY_REGEX
- See Also:
-
-
Constructor Details
-
MoneyRuleValidator
public MoneyRuleValidator()
-
-
Method Details
-
getRegex
Description copied from class:AbstractRegexRuleValidator
A regular expression pattern used to match and validate a SPEL-based rule- Specified by:
getRegex
in classAbstractRegexRuleValidator
- Returns:
- A regular expression pattern used to match and validate a SPEL-based rule
-
setRegex
-