org.appng.api.rest.model

## Class Option

- java.lang.Object
- - org.appng.api.rest.model.Option

- All Implemented Interfaces:
    Serializable

      @Generated(value="io.swagger.codegen.languages.JavaClientCodegen",
                 date="2023-03-20T12:57:47.319+01:00")
      public class Option
      extends Object
      implements Serializable

  A single option, used in a filter or an action-field.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Option()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Option` | `addOptionsItem(Option optionsItem)`
    `boolean` | `equals(Object o)`
    `Integer` | `getHits()` Tells how many hits there are for this option.
    `String` | `getLabel()` The label for this option.
    `List<Option>` | `getOptions()` An option can act as a group and thus can itself own a list of options.
    `String` | `getValue()` The value for this option.
    `int` | `hashCode()`
    `Option` | `hits(Integer hits)`
    `Boolean` | `isSelected()` Whether or not this option is selected.
    `Option` | `label(String label)`
    `Option` | `options(List<Option> options)`
    `Option` | `selected(Boolean selected)`
    `void` | `setHits(Integer hits)`
    `void` | `setLabel(String label)`
    `void` | `setOptions(List<Option> options)`
    `void` | `setSelected(Boolean selected)`
    `void` | `setValue(String value)`
    `String` | `toString()`
    `Option` | `value(String value)`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### Option

          public Option()

  - ### Method Detail

    - #### value

          public Option value(String value)

    - #### getValue

          public String getValue()

      The value for this option.
      Returns:
        value

    - #### setValue

          public void setValue(String value)

    - #### label

          public Option label(String label)

    - #### getLabel

          public String getLabel()

      The label for this option.
      Returns:
        label

    - #### setLabel

          public void setLabel(String label)

    - #### selected

          public Option selected(Boolean selected)

    - #### isSelected

          public Boolean isSelected()

      Whether or not this option is selected.
      Returns:
        selected

    - #### setSelected

          public void setSelected(Boolean selected)

    - #### hits

          public Option hits(Integer hits)

    - #### getHits

          public Integer getHits()

      Tells how many hits there are for this option.
      Returns:
        hits

    - #### setHits

          public void setHits(Integer hits)

    - #### options

          public Option options(List<Option> options)

    - #### addOptionsItem

          public Option addOptionsItem(Option optionsItem)

    - #### getOptions

          public List<Option> getOptions()

      An option can act as a group and thus can itself own a list of options.
      Returns:
        options

    - #### setOptions

          public void setOptions(List<Option> options)

    - #### 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`

Copyright © 2011–2023 aiticon GmbH. All rights reserved.