Package org.praxisplatform.uischema
Enum Class FieldDataType
- All Implemented Interfaces:
Serializable,Comparable<FieldDataType>,Constable
Enum canônico dos tipos de dado publicados em
x-ui.type.
O valor de type descreve a semântica do dado, enquanto controlType descreve a
representação visual. A combinação dos dois permite que frontends metadata-driven escolham
renderização, validação e formatação adequadas sem depender de convenções locais.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents a boolean data type.Represents a date data type.Represents an email address data type.Represents a file data type.Represents a JSON object data type.Represents a numeric data type.Represents a password data type.Represents a text data type.Represents a URL data type. -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldDataTypeConverts a string value to the corresponding FieldDataType Enum.getValue()Gets the string value of the data type.static FieldDataTypeReturns the enum constant of this class with the specified name.static FieldDataType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TEXT
Represents a text data type. -
NUMBER
Represents a numeric data type. -
EMAIL
Represents an email address data type. -
DATE
Represents a date data type. -
PASSWORD
Represents a password data type. -
FILE
Represents a file data type. -
URL
Represents a URL data type. -
BOOLEAN
Represents a boolean data type. -
JSON
Represents a JSON object data type.
-
-
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
Gets the string value of the data type.- Returns:
- The string value.
-
fromValue
Converts a string value to the corresponding FieldDataType Enum. The comparison is case-insensitive.- Parameters:
value- The string value to convert.- Returns:
- The matching FieldDataType.
- Throws:
IllegalArgumentException- if the value does not match any known data type.
-