org.apache.tapestry5.beanvalidator

## Interface ClientConstraintDescriptor

- All Known Implementing Classes:
    BaseCCD

      public interface ClientConstraintDescriptor

  Applies client-side validation constraints based on a particular JSR 303 annotation. Note: converted from a final class to an interface as part of 5.4.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `applyClientValidation(MarkupWriter writer, String message, Map<String,Object> attributes)` Applies the validation
    `Class` | `getAnnotationClass()` The annotation class that drives this descriptor.
    `Set<String>` | `getAttributes()` Names of attributes from the `ConstraintDescriptor` that are relevant.

- - ### Method Detail

    - #### getAnnotationClass

          Class getAnnotationClass()

      The annotation class that drives this descriptor.

    - #### getAttributes

          Set<String> getAttributes()

      Names of attributes from the `ConstraintDescriptor` that are relevant.

    - #### applyClientValidation

          void applyClientValidation(MarkupWriter writer,
                                     String message,
                                     Map<String,Object> attributes)

      Applies the validation
      Parameters:
        `writer` - used to write new attributes into the HTML tag for the user interface element
        `message` - error message to present to user when the constraint is violated
        `attributes` - getAttributes() selected attributes} from the `ConstraintDescriptor`

5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.