org.javalid.core.validator
Class LovConstraintValidatorImpl

java.lang.Object
  extended by org.javalid.core.validator.AbstractJavalidValidatorImpl<LovConstraint>
      extended by 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:

Changes for 1.2:

Since:
1.0
Version:
1.2
Author:
M.Reuvers

Constructor Summary
LovConstraintValidatorImpl()
           
 
Method Summary
 java.util.List<ValidationMessage> doValidate(LovConstraint 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

LovConstraintValidatorImpl

public LovConstraintValidatorImpl()
Method Detail

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>