Class EnumPropertyDescriptor

java.lang.Object
io.jmix.aitools.dataload.introspection.model.AbstractEntityPropertyDescriptor
io.jmix.aitools.dataload.introspection.model.EnumPropertyDescriptor
All Implemented Interfaces:
EntityPropertyDescriptor

public class EnumPropertyDescriptor extends AbstractEntityPropertyDescriptor
Descriptor of an enum entity property. Adds the enum class description and how its values are stored (for example by id, name or ordinal) on top of the common property attributes.
  • Field Details

  • Constructor Details

  • Method Details

    • getEnumType

      public EnumClassDescriptor getEnumType()
      Returns the description of the enum class, including its constants.
      Returns:
      enum class descriptor
    • getEnumStorageMode

      public @Nullable String getEnumStorageMode()
      Returns how the enum values are stored.
      Returns:
      storage mode (for example "ordinal" or "string"), or null for a Jmix EnumClass
    • fieldsToString

      protected String fieldsToString()
      Overrides:
      fieldsToString in class AbstractEntityPropertyDescriptor