Class EnumerationCharacterConstraintValidator

    • Constructor Detail

      • EnumerationCharacterConstraintValidator

        public EnumerationCharacterConstraintValidator​(Set<String> allowed)
    • Method Detail

      • validate

        public void validate​(Character actual,
                             io.rxmicro.rest.model.HttpModelType httpModelType,
                             String modelName)
                      throws io.rxmicro.http.error.ValidationException
        Description copied from interface: ConstraintValidator
        Validates a single actual. The state of actual must not be altered.
        Specified by:
        validate in interface ConstraintValidator<Character>
        Parameters:
        actual - actual value to validate
        httpModelType - http model type
        modelName - parameter or header name
        Throws:
        io.rxmicro.http.error.ValidationException - if actual does not pass the constraint