Uses of Interface
org.strassburger.tui4j.input.validationrules.ValidationRule
Packages that use ValidationRule
-
Uses of ValidationRule in org.strassburger.tui4j.input
Methods in org.strassburger.tui4j.input with parameters of type ValidationRuleModifier and TypeMethodDescriptionInput.addValidationRule(ValidationRule<T> rule) Add a validation rule to the inputMethod parameters in org.strassburger.tui4j.input with type arguments of type ValidationRuleModifier and TypeMethodDescriptionInput.addValidationRules(List<ValidationRule<T>> rules) Add validation rules to the input -
Uses of ValidationRule in org.strassburger.tui4j.input.validationrules
Methods in org.strassburger.tui4j.input.validationrules that return ValidationRuleModifier and TypeMethodDescriptionstatic ValidationRule<Date>Returns a validation rule that checks if the date is after a specified date.static ValidationRule<Date>Returns a validation rule that checks if the date is after a specified date with a custom string error message.static ValidationRule<Date>DateValidationRules.after(Date date, StyledText errorMessage) Returns a validation rule that checks if the date is after a specified date with a custom styled error message.static ValidationRule<String>TextValidationRules.alphanumeric()Returns a validation rule that checks if the input is alphanumeric.static ValidationRule<String>TextValidationRules.alphanumeric(String errorMessage) Returns a validation rule that checks if the input is alphanumeric with a custom string error message.static ValidationRule<String>TextValidationRules.alphanumeric(StyledText errorMessage) Returns a validation rule that checks if the input is alphanumeric with a custom error message.static ValidationRule<Date>Returns a validation rule that checks if the date is before a specified date.static ValidationRule<Date>Returns a validation rule that checks if the date is before a specified date with a custom string error message.static ValidationRule<Date>DateValidationRules.before(Date date, StyledText errorMessage) Returns a validation rule that checks if the date is before a specified date with a custom styled error message.static ValidationRule<String>TextValidationRules.disallowEmpty()Returns a validation rule that checks if the input is not empty.static ValidationRule<String>TextValidationRules.disallowEmpty(String errorMessage) Returns a validation rule that checks if the input is not empty with a custom string error message.static ValidationRule<String>TextValidationRules.disallowEmpty(StyledText errorMessage) Returns a validation rule that checks if the input is not empty with a custom error message.static ValidationRule<Date>DateValidationRules.futureDate()Returns a validation rule that checks if the date is in the future.static ValidationRule<Date>DateValidationRules.futureDate(String errorMessage) Returns a validation rule that checks if the date is in the future with a custom string error message.static ValidationRule<Date>DateValidationRules.futureDate(StyledText errorMessage) Returns a validation rule that checks if the date is in the future with a custom styled error message.static <T extends Number & Comparable<T>>
ValidationRule<T>NumberValidationRules.greaterThan(T value) Validates that the input is greater than the given value.static <T extends Number & Comparable<T>>
ValidationRule<T>NumberValidationRules.greaterThan(T value, String errorMessage) Validates that the input is greater than the given value with a custom error message.static <T extends Number & Comparable<T>>
ValidationRule<T>NumberValidationRules.greaterThan(T value, StyledText errorMessage) Validates that the input is greater than the given value with a custom error message.static <T extends Number & Comparable<T>>
ValidationRule<T>NumberValidationRules.greaterThanOrEqualTo(T value) Validates that the input is greater than or equal to the given value.static <T extends Number & Comparable<T>>
ValidationRule<T>NumberValidationRules.greaterThanOrEqualTo(T value, String errorMessage) Validates that the input is greater than or equal to the given value with a custom error message.static <T extends Number & Comparable<T>>
ValidationRule<T>NumberValidationRules.greaterThanOrEqualTo(T value, StyledText errorMessage) Validates that the input is greater than or equal to the given value with a custom error message.static <T extends Number & Comparable<T>>
ValidationRule<T>NumberValidationRules.lessThan(T value) Validates that the input is equal to the given value.static <T extends Number & Comparable<T>>
ValidationRule<T>Validates that the input is equal to the given value with a custom error message.static <T extends Number & Comparable<T>>
ValidationRule<T>NumberValidationRules.lessThan(T value, StyledText errorMessage) Validates that the input is equal to the given value with a custom error message.static <T extends Number & Comparable<T>>
ValidationRule<T>NumberValidationRules.lessThanOrEqualTo(T value) Validates that the input is less than or equal to the given value.static <T extends Number & Comparable<T>>
ValidationRule<T>NumberValidationRules.lessThanOrEqualTo(T value, String errorMessage) Validates that the input is less than or equal to the given value with a custom error message.static <T extends Number & Comparable<T>>
ValidationRule<T>NumberValidationRules.lessThanOrEqualTo(T value, StyledText errorMessage) Validates that the input is less than or equal to the given value with a custom error message.static ValidationRule<String>TextValidationRules.maxLength(int length) Returns a validation rule that checks if the input is at most a certain length.static ValidationRule<String>Returns a validation rule that checks if the input is at most a certain length with a custom string error message.static ValidationRule<String>TextValidationRules.maxLength(int length, StyledText errorMessage) Returns a validation rule that checks if the input is at most a certain length with a custom error message.static ValidationRule<String>TextValidationRules.minLength(int length) Returns a validation rule that checks if the input is at least a certain length.static ValidationRule<String>Returns a validation rule that checks if the input is at least a certain length with a custom string error message.static ValidationRule<String>TextValidationRules.minLength(int length, StyledText errorMessage) Returns a validation rule that checks if the input is at least a certain length with a custom error message.static ValidationRule<String>TextValidationRules.noNumbers()Returns a validation rule that checks if the input does not contain numbers.static ValidationRule<String>Returns a validation rule that checks if the input does not contain numbers with a custom string error message.static ValidationRule<String>TextValidationRules.noNumbers(StyledText errorMessage) Returns a validation rule that checks if the input does not contain numbers with a custom error message.static ValidationRule<String>TextValidationRules.noSpaces()Returns a validation rule that checks if the input contains spaces.static ValidationRule<String>Returns a validation rule that checks if the input contains spaces with a custom error message.static ValidationRule<String>TextValidationRules.noSpaces(StyledText errorMessage) Returns a validation rule that checks if the input contains spaces with a custom error message.static ValidationRule<Date>DateValidationRules.pastDate()Returns a validation rule that checks if the date is in the past.static ValidationRule<Date>Returns a validation rule that checks if the date is in the past with a custom string error message.static ValidationRule<Date>DateValidationRules.pastDate(StyledText errorMessage) Returns a validation rule that checks if the date is in the past with a custom styled error message.static ValidationRule<String>Returns a validation rule that checks if the input matches a certain regex.static ValidationRule<String>Returns a validation rule that checks if the input matches a certain regex with a custom string error message.static ValidationRule<String>TextValidationRules.regex(String regex, StyledText errorMessage) Returns a validation rule that checks if the input matches a certain regex with a custom error message.