org.javalid.core.validator
Class LovConstraintValidatorImpl
java.lang.Object
org.javalid.core.validator.AbstractJavalidValidatorImpl<LovConstraint>
org.javalid.core.validator.LovConstraintValidatorImpl
- All Implemented Interfaces:
- JavalidValidator<LovConstraint>
public class LovConstraintValidatorImpl
- extends AbstractJavalidValidatorImpl<LovConstraint>
This class is responsible for validating the LovConstraint annotation.
Checks if given values is in or not in the list of values. This is a very
powerful annotation, please consult @LovConstraint itself for more info.
On error adds a ValidationMessage of: MessageCodes.MSG_LOV_CONSTR_VALUE_NOT_IN_LOV_ERROR
or MessageCodes.MSG_LOV_CONSTR_VALUE_IN_LOV_ERROR depending on the operator used.
ValidationMessage's value property contains currentValue,lovValues.
Changes for 1.1:
- Removed ValidatorSupport instance, using its static methods instead
Changes for 1.2:
- Refactored: Extends AbstractJavalidValidator
- Since:
- 1.0
- Version:
- 1.2
- Author:
- M.Reuvers
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LovConstraintValidatorImpl
public LovConstraintValidatorImpl()
doValidate
public java.util.List<ValidationMessage> doValidate(LovConstraint annotation,
java.lang.Object value,
java.lang.String path,
JvConfigurationWrapper config)
- Specified by:
doValidate in class AbstractJavalidValidatorImpl<LovConstraint>