Class LatinAlphabetOnlyConstraintValidator

    • Constructor Detail

      • LatinAlphabetOnlyConstraintValidator

        public LatinAlphabetOnlyConstraintValidator​(boolean allowsUppercase,
                                                    boolean allowsLowercase,
                                                    boolean allowsDigits,
                                                    String punctuations)
        Creates the default instance of LatinAlphabetOnlyConstraintValidator with the specified parameters.
        Parameters:
        allowsUppercase - allows uppercase letters
        allowsLowercase - allows lowercase letters
        allowsDigits - allows digits
        punctuations - the string that contains supported punctuation characters
    • Method Detail

      • validate

        public void validate​(String 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<String>
        Parameters:
        actual - the actual value to validate
        httpModelType - the http model type
        modelName - the parameter or header name