org.javalid.core.validator
Class MinValueValidatorImpl

java.lang.Object
  extended by org.javalid.core.validator.AbstractJavalidValidatorImpl<MinValue>
      extended by org.javalid.core.validator.MinValueValidatorImpl
All Implemented Interfaces:
JavalidValidator<MinValue>

public class MinValueValidatorImpl
extends AbstractJavalidValidatorImpl<MinValue>

This class is responsible for validating the MinValue annotation. Checks if given value is at minimum the one specified at the annotation. On error adds a ValidationMessage one of: MessageCodes.MSG_MIN_VALUE_ERROR or MessageCodes.MSG_NOT_NUMERIC_ERROR.

ValidationMessage's value property contains currentValue,annotationValue.

Changes for 1.1:

Changes for 1.2:

Since:
1.0
Version:
1.2
Author:
M.Reuvers

Constructor Summary
MinValueValidatorImpl()
           
 
Method Summary
 java.util.List<ValidationMessage> doValidate(MinValue annotation, java.lang.Object value, java.lang.String path, JvConfigurationWrapper config)
           
 
Methods inherited from class org.javalid.core.validator.AbstractJavalidValidatorImpl
checkIsSingleExpression, requiresComplexCall, validate, validateComplex, validationMustBeAppliedToGroup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinValueValidatorImpl

public MinValueValidatorImpl()
Method Detail

doValidate

public java.util.List<ValidationMessage> doValidate(MinValue annotation,
                                                    java.lang.Object value,
                                                    java.lang.String path,
                                                    JvConfigurationWrapper config)
Specified by:
doValidate in class AbstractJavalidValidatorImpl<MinValue>