Interface EnumOption

All Superinterfaces:
CanRender<Renderer<? extends Renderer<?>>>, HasReference<ModelEntityReference>, ModelEntity, ModelEntityBase<EnumOption,EnumOptionReference>

public interface EnumOption extends ModelEntityBase<EnumOption,EnumOptionReference>
Since:
3.9.0
  • Method Details

    • id

      @NotNull String id()
    • label

      @NotNull String label()
      Returns value of the name field if it is not empty, otherwise returns the id.
    • oppositeLabel

      @NotNull String oppositeLabel()
      Returns value of the oppositeName field if it is not empty, otherwise returns the id.
    • fields

      @NotNull EnumOptionFields fields()
    • render

      @NotNull EnumOptionRenderer render()
      Specified by:
      render in interface CanRender<Renderer<? extends Renderer<?>>>
      Specified by:
      render in interface ModelEntity
    • getModelObject

      @Nullable <T extends ModelObject> T getModelObject()
      Returns the model object if this is option from enumeration based on model objects
    • isPhantom

      boolean isPhantom()
      Returns:
      true if this option is not based on existing definition, but was just derived from the ID, false otherwise.
      Since:
      3.9.2
    • isHidden

      boolean isHidden()
      Returns:
      true if this option is configured to be hidden.
      Since:
      3.21.1