Class FieldEmptyValidator

  • All Implemented Interfaces:
    org.springframework.validation.Validator

    public class FieldEmptyValidator
    extends AbstractFieldValidator
    Implementation of AbstractFieldValidator that validates one specific string property in any object if it is null or blank.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean supports​(java.lang.Class clazz)  
      void validate​(java.lang.Object object, org.springframework.validation.Errors errors)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FieldEmptyValidator

        public FieldEmptyValidator()
    • Method Detail

      • supports

        public boolean supports​(java.lang.Class clazz)
      • validate

        public void validate​(java.lang.Object object,
                             org.springframework.validation.Errors errors)