Enum Class FieldControlType

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

public enum FieldControlType extends Enum<FieldControlType>
Enum canônico dos controles publicados em x-ui.controlType.

O controlType informa qual componente visual deve ser usado para capturar ou exibir um campo. O conjunto publicado aqui define a superficie oficial suportada pelo runtime dinâmico da plataforma e serve de contrato entre backend, documentação OpenAPI enriquecida e frontend.

O valor AUTO funciona como sentinela: quando presente, o resolver decide o controle final com base em schema OpenAPI, formato e heurísticas. Valores diferentes de AUTO representam escolha explícita do domínio.

  • Enum Constant Details

  • Method Details

    • values

      public static FieldControlType[] 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 FieldControlType 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 control type.
      Returns:
      The string value.
    • fromValue

      public static FieldControlType fromValue(String value)
      Converts a string value to the corresponding FieldControlType Enum. The comparison is case-insensitive.
      Parameters:
      value - The string value to convert.
      Returns:
      The matching FieldControlType.
      Throws:
      IllegalArgumentException - if the value does not match any known control type.