Interface ValidationContext.AdapterCreateRequest

Enclosing interface:
ValidationContext

public static interface ValidationContext.AdapterCreateRequest
Request to create a Validation Adapter.
  • Method Details

    • ctx

      Return the context.
    • annotationType

      Class<? extends Annotation> annotationType()
      Return the validation annotation type.
    • groups

      Set<Class<?>> groups()
      Return the groups this constraint is active for.
    • attributes

      Map<String,Object> attributes()
      Return the annotation attributes.
    • attribute

      <T> T attribute(String key)
      Return the attribute for the given key.
    • message

      Return the message to use
    • message

      ValidationContext.Message message(String key, Object... extraKeyValues)
      Build and return a message given the new message key and attributes
    • targetType

      String targetType()
      Return the target type
    • isDefaultGroupOnly

      boolean isDefaultGroupOnly()
      Return true if the groups is ONLY the default group
    • withValue

      Clone and return the request with a new value attribute