Class ChoiceList

java.lang.Object
org.tailormap.api.persistence.json.ChoiceList
All Implemented Interfaces:
Serializable

@Generated(value="org.openapitools.codegen.languages.SpringCodegen", comments="Generator version: 7.27.0") public class ChoiceList extends Object implements Serializable
The choices for a field with a select control. Only used when the control type of the form field is 'select'.
See Also:
  • Constructor Details

    • ChoiceList

      public ChoiceList()
  • Method Details

    • source

      public ChoiceList source(ChoiceList.SourceEnum source)
    • getSource

      @NotNull public @NotNull ChoiceList.SourceEnum getSource()
      Where the choices come from: - list: the configured values - uniqueValues: the unique values of the attribute in the feature source
      Returns:
      source
    • setSource

      public void setSource(ChoiceList.SourceEnum source)
    • values

      public ChoiceList values(@Nullable List<@Valid ChoiceListValue> values)
    • addValuesItem

      public ChoiceList addValuesItem(ChoiceListValue valuesItem)
    • getValues

      public List<@Valid ChoiceListValue> getValues()
      The configured choices, in the order to show them. Used when source is 'list'. Kept but ignored for other sources, so they are not lost when the source is changed back.
      Returns:
      values
    • setValues

      public void setValues(List<@Valid ChoiceListValue> values)
    • allowFreeInput

      public ChoiceList allowFreeInput(@Nullable Boolean allowFreeInput)
    • getAllowFreeInput

      public Boolean getAllowFreeInput()
      when true the user can also enter a value which is not one of the choices
      Returns:
      allowFreeInput
    • setAllowFreeInput

      public void setAllowFreeInput(Boolean allowFreeInput)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object