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 ofRuleValidate
annotated fields. RuleValidator instances encapsulate a single type of rule and are leveraged in unison viaRuleValidatorManager
.- Author:
- Jeff Fischer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default int
getOrder()
RuleValidatorResponse
validate(RuleInspector.RuleExpression target, org.springframework.validation.Errors errors)
-
-
-
Method Detail
-
validate
RuleValidatorResponse validate(RuleInspector.RuleExpression target, org.springframework.validation.Errors errors)
-
getOrder
default int getOrder()
- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
-