Package org.praxisplatform.uischema
Enum Class ValidationProperties
- All Implemented Interfaces:
Serializable,Comparable<ValidationProperties>,Constable
Define propriedades de validação utilizadas na extensão
x-ui.validation.
Cada constante representa uma chave consumida pelo frontend para exibir
mensagens e restrições. Os valores são preenchidos automaticamente pelo
CustomOpenApiResolver com base
nas anotações Jakarta Bean Validation, podendo ser sobrescritos via
extraProperties em UISchema.
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ValidationPropertiesgetValue()static ValidationPropertiesReturns the enum constant of this class with the specified name.static ValidationProperties[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REQUIRED
-
MIN_LENGTH
-
MAX_LENGTH
-
MIN
-
MAX
-
PATTERN
-
REQUIRED_MESSAGE
-
MIN_LENGTH_MESSAGE
-
MAX_LENGTH_MESSAGE
-
PATTERN_MESSAGE
-
RANGE_MESSAGE
-
CUSTOM_VALIDATOR
-
ASYNC_VALIDATOR
-
CONDITIONAL_REQUIRED
-
MIN_WORDS
-
ALLOWED_FILE_TYPES
-
FILE_TYPE_MESSAGE
-
MAX_FILE_SIZE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
-
fromValue
-