Annotation Type NotContain


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface NotContain
    The annotated element must not contain the specified values.

    Supported types are:

    • STRING
    • SET_OF_STRING
    • LIST_OF_STRING
    • MAP_STRING_STRING

    null elements are considered valid.
    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static java.lang.String DEFAULT_MESSAGE  
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String message  
      java.lang.String[] value  
    • Field Detail

      • DEFAULT_MESSAGE

        static final java.lang.String DEFAULT_MESSAGE
    • Element Detail

      • message

        java.lang.String message
        Default:
        "The property must not contain %s."
      • value

        java.lang.String[] value
        Default:
        {}