Class EnumerationCharacterConstraintValidator

    • Constructor Detail

      • EnumerationCharacterConstraintValidator

        public EnumerationCharacterConstraintValidator​(Collection<String> allowed)
        Creates the default instance of EnumerationCharacterConstraintValidator with the the allowed enum characters.
        Parameters:
        allowed - the allowed enum characters
    • Method Detail

      • validate

        public void validate​(Character actual,
                             HttpModelType httpModelType,
                             String modelName)
        Description copied from interface: ConstraintValidator
        Validates the single actual.

        The state of the actual must not be altered.

        Specified by:
        validate in interface ConstraintValidator<Character>
        Parameters:
        actual - the actual value to validate
        httpModelType - the http model type
        modelName - the parameter or header name