org.appng.api.validation.contraints

## Class RichtextSizeValidator

- java.lang.Object
- - org.appng.api.validation.contraints.RichtextSizeValidator

- All Implemented Interfaces:
    javax.validation.ConstraintValidator<RichtextSize,String>

      public class RichtextSizeValidator
      extends Object
      implements javax.validation.ConstraintValidator<RichtextSize,String>

  Validates that the plain text length of the given string is >= `RichtextSize.min()` and <= `RichtextSize.max()`
  Author:
    Matthias Müller

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RichtextSizeValidator()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `initialize(RichtextSize maxRichtextLength)`
    `boolean` | `isValid(String value, javax.validation.ConstraintValidatorContext context)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RichtextSizeValidator

          public RichtextSizeValidator()

  - ### Method Detail

    - #### initialize

          public void initialize(RichtextSize maxRichtextLength)

      Specified by:
        `initialize` in interface `javax.validation.ConstraintValidator<RichtextSize,String>`

    - #### isValid

          public boolean isValid(String value,
                                 javax.validation.ConstraintValidatorContext context)

      Specified by:
        `isValid` in interface `javax.validation.ConstraintValidator<RichtextSize,String>`

Copyright © 2011–2023 aiticon GmbH. All rights reserved.