org.javalid.core.validator
Class NotNullValidatorImpl

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

public class NotNullValidatorImpl
extends AbstractJavalidValidatorImpl<NotNull>

This class is responsible for validating the NotNull annotation. Checks if given value is null or not, and if null adds a validation message.

ValidationMessage's value property is NULL, nothing is stored for NotNull.

Changes for 1.1:

Changes for 1.2:

Since:
1.0
Version:
1.2
Author:
M.Reuvers

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

NotNullValidatorImpl

public NotNullValidatorImpl()
Method Detail

doValidate

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