Annotation Type OneOfStrings

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      Class<?>[] groups
      Allows for the specification of validation groups to which this constraint belongs.
      String message  
      Class<? extends javax.validation.Payload>[] payload
      An attribute payload that can be used to assign custom payload objects to a constraint.
      String[] value  
    • Element Detail

      • message

        String message
        Returns:
        Default error message that is returned if the incorrect value is set
        Default:
        "Field value must be one of the following: {value}"
      • groups

        Class<?>[] groups
        Allows for the specification of validation groups to which this constraint belongs.
        Default:
        {}
      • payload

        Class<? extends javax.validation.Payload>[] payload
        An attribute payload that can be used to assign custom payload objects to a constraint.
        Default:
        {}
      • value

        String[] value
        Returns:
        Default value that is returned if no allowed values are configured
        Default:
        {}