org.javalid.core.validator
Class MaxValueValidatorImpl
java.lang.Object
org.javalid.core.validator.AbstractJavalidValidatorImpl<MaxValue>
org.javalid.core.validator.MaxValueValidatorImpl
- All Implemented Interfaces:
- JavalidValidator<MaxValue>
public class MaxValueValidatorImpl
- extends AbstractJavalidValidatorImpl<MaxValue>
This class is responsible for validating the MaxValue annotation.
Checks if given value is less or equal than the one specified at the annotation.
On error adds a ValidationMessage one of: MessageCodes.MSG_MAX_VALUE_ERROR or
MessageCodes.MSG_NOT_NUMERIC_ERROR.
ValidationMessage's value property contains currentValue,annotationValue.
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 |
MaxValueValidatorImpl
public MaxValueValidatorImpl()
doValidate
public java.util.List<ValidationMessage> doValidate(MaxValue annotation,
java.lang.Object value,
java.lang.String path,
JvConfigurationWrapper config)
- Specified by:
doValidate in class AbstractJavalidValidatorImpl<MaxValue>