Enum Class FieldDataType

java.lang.Object
java.lang.Enum<FieldDataType>
org.praxisplatform.uischema.FieldDataType
All Implemented Interfaces:
Serializable, Comparable<FieldDataType>, Constable

public enum FieldDataType extends Enum<FieldDataType>
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.

  • Enum Constant Details

    • TEXT

      public static final FieldDataType TEXT
      Represents a text data type.
    • NUMBER

      public static final FieldDataType NUMBER
      Represents a numeric data type.
    • EMAIL

      public static final FieldDataType EMAIL
      Represents an email address data type.
    • DATE

      public static final FieldDataType DATE
      Represents a date data type.
    • PASSWORD

      public static final FieldDataType PASSWORD
      Represents a password data type.
    • FILE

      public static final FieldDataType FILE
      Represents a file data type.
    • URL

      public static final FieldDataType URL
      Represents a URL data type.
    • BOOLEAN

      public static final FieldDataType BOOLEAN
      Represents a boolean data type.
    • JSON

      public static final FieldDataType JSON
      Represents a JSON object data type.
  • Method Details

    • values

      public static FieldDataType[] 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

      public static FieldDataType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      Gets the string value of the data type.
      Returns:
      The string value.
    • fromValue

      public static FieldDataType fromValue(String value)
      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.