Annotation Type NotBlankStringCollection


  • @Documented
    @Constraint(validatedBy=NotBlankStringCollectionValidator.class)
    @Retention(RUNTIME)
    @Target({FIELD,PARAMETER})
    public @interface NotBlankStringCollection
    Can be used with collection of strings. Checks if collection contains only not blank elements.

    null - valid value. empty collection - valid value.

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.Class<?>[] groups  
      java.lang.String message  
      java.lang.Class<?>[] payload  
    • Element Detail

      • message

        java.lang.String message
        Default:
        "Collection should not contain blank elements"
      • groups

        java.lang.Class<?>[] groups
        Default:
        {}
      • payload

        java.lang.Class<?>[] payload
        Default:
        {}