org.gcube.common.validator.annotations.validators
Class NotNullValidator

java.lang.Object
  extended by org.gcube.common.validator.annotations.validators.NotNullValidator
All Implemented Interfaces:
FieldValidator<NotNull>

public class NotNullValidator
extends Object
implements FieldValidator<NotNull>


Constructor Summary
NotNullValidator()
           
 
Method Summary
 Class<NotNull> annotation()
           
 String getErrorSuffix()
           
 boolean isValid(Object toValidate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotNullValidator

public NotNullValidator()
Method Detail

getErrorSuffix

public String getErrorSuffix()
Specified by:
getErrorSuffix in interface FieldValidator<NotNull>

annotation

public Class<NotNull> annotation()
Specified by:
annotation in interface FieldValidator<NotNull>

isValid

public boolean isValid(Object toValidate)
Specified by:
isValid in interface FieldValidator<NotNull>


Copyright © 2013. All Rights Reserved.