Class FieldNotEmptyValidator

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

    public class FieldNotEmptyValidator
    extends java.lang.Object
    implements org.springframework.validation.Validator
    Implementation of Validator that validates one specific string property specified by fieldPath property in any object if it is not null and not blank
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFieldPath()  
      void setFieldPath​(java.lang.String fieldPath)  
      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

      • FieldNotEmptyValidator

        public FieldNotEmptyValidator()
    • Method Detail

      • supports

        public boolean supports​(java.lang.Class clazz)
        Specified by:
        supports in interface org.springframework.validation.Validator
      • validate

        public void validate​(java.lang.Object object,
                             org.springframework.validation.Errors errors)
        Specified by:
        validate in interface org.springframework.validation.Validator
      • getFieldPath

        public java.lang.String getFieldPath()
      • setFieldPath

        public void setFieldPath​(java.lang.String fieldPath)