Interface RuleValidator
- All Superinterfaces:
org.springframework.core.Ordered
- All Known Implementing Classes:
AbstractRegexRuleValidator
,BooleanRuleValidator
,CollectionRuleValidator
,DateRuleValidator
,IsEmptyCollectionRuleValidator
,LocaleRuleValidator
,MoneyRuleValidator
,NumberRuleValidator
,StringRuleValidator
public interface RuleValidator
extends org.springframework.core.Ordered
Specializes in validation of
RuleValidate
annotated fields. RuleValidator instances
encapsulate a single type of rule and are leveraged in unison via RuleValidatorManager
.- Author:
- Jeff Fischer
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
getOrder()
validate
(RuleInspector.RuleExpression target, org.springframework.validation.Errors errors)
-
Method Details
-
validate
RuleValidatorResponse validate(RuleInspector.RuleExpression target, org.springframework.validation.Errors errors) -
getOrder
default int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-