io.vertx.json.schema.common

## Class EnumValidatorFactory.EnumValidator

- java.lang.Object
- - io.vertx.json.schema.common.BaseSyncValidator
  - - io.vertx.json.schema.common.EnumValidatorFactory.EnumValidator

- All Implemented Interfaces:
    PriorityGetter, SyncValidator, Validator
  Enclosing class:
    EnumValidatorFactory

      public static class EnumValidatorFactory.EnumValidator
      extends BaseSyncValidator

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `EnumValidator(Set allowedValues)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ValidatorPriority` | `getPriority()` Returns the priority
    `void` | `validateSync(ValidatorContext context, Object in)` Validate the provided value

    - ### Methods inherited from class io.vertx.json.schema.common.BaseSyncValidator

      `isSync`

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

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

- - ### Constructor Detail

    - #### EnumValidator

          public EnumValidator(Set allowedValues)

  - ### Method Detail

    - #### getPriority

          public ValidatorPriority getPriority()

      Description copied from interface: `PriorityGetter`
      Returns the priority
      Specified by:
        `getPriority` in interface `PriorityGetter`
      Overrides:
        `getPriority` in class `BaseSyncValidator`
      Returns:

    - #### validateSync

          public void validateSync(ValidatorContext context,
                                   Object in)
                            throws ValidationException

      Description copied from interface: `SyncValidator`
      Validate the provided value
      Throws:
        `ValidationException` - if the object is not valid

Copyright © 2024 Eclipse. All rights reserved.