org.javalid.core.validator
Class NotNullValidatorImpl
java.lang.Object
org.javalid.core.validator.AbstractJavalidValidatorImpl<NotNull>
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:
- 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 |
NotNullValidatorImpl
public NotNullValidatorImpl()
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>