Class AbstractValidationStrategy
java.lang.Object
io.github.arasdenizhan.core.strategy.AbstractValidationStrategy
- All Implemented Interfaces:
ValidationStrategy
- Direct Known Subclasses:
EmailStrategy,FutureStrategy,LengthStrategy,MaxStrategy,MinStrategy,NotBlankStrategy,NotNullStrategy,PastStrategy,PatternStrategy
Core strategy abstract class for creating a validation strategy.
Given typeNames can be checked with default method to prevent usages with other fields.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckUsageIsValid(Field field, List<ValidationError> errors) abstract voidvalidate(Field field, Object value, List<ValidationError> errors)
-
Constructor Details
-
AbstractValidationStrategy
-
-
Method Details
-
validate
- Specified by:
validatein interfaceValidationStrategy
-
checkUsageIsValid
-