org.appng.api.rest.model

## Class Field

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

- All Implemented Interfaces:
    Serializable

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

  A field that is part of a datasource.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Field()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Field` | `addFieldsItem(Field fieldsItem)`
    `Field` | `addRulesItem(ValidationRule rulesItem)`
    `boolean` | `equals(Object o)`
    `Field` | `fields(List<Field> fields)`
    `Field` | `fieldType(FieldType fieldType)`
    `Field` | `format(String format)`
    `List<Field>` | `getFields()` The child fields of this field.
    `FieldType` | `getFieldType()` The type for this field.
    `String` | `getFormat()` The format for this field, depending on its type.
    `String` | `getLabel()` The label for this field.
    `String` | `getName()` The name for this field.
    `List<ValidationRule>` | `getRules()` The validation rules that should be applied for this field.
    `Sort` | `getSort()` The sort for this field.
    `int` | `hashCode()`
    `Field` | `label(String label)`
    `Field` | `name(String name)`
    `Field` | `rules(List<ValidationRule> rules)`
    `void` | `setFields(List<Field> fields)`
    `void` | `setFieldType(FieldType fieldType)`
    `void` | `setFormat(String format)`
    `void` | `setLabel(String label)`
    `void` | `setName(String name)`
    `void` | `setRules(List<ValidationRule> rules)`
    `void` | `setSort(Sort sort)`
    `Field` | `sort(Sort sort)`
    `String` | `toString()`

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

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

- - ### Constructor Detail

    - #### Field

          public Field()

  - ### Method Detail

    - #### name

          public Field name(String name)

    - #### getName

          public String getName()

      The name for this field.
      Returns:
        name

    - #### setName

          public void setName(String name)

    - #### label

          public Field label(String label)

    - #### getLabel

          public String getLabel()

      The label for this field.
      Returns:
        label

    - #### setLabel

          public void setLabel(String label)

    - #### fieldType

          public Field fieldType(FieldType fieldType)

    - #### getFieldType

          public FieldType getFieldType()

      The type for this field.
      Returns:
        fieldType

    - #### setFieldType

          public void setFieldType(FieldType fieldType)

    - #### sort

          public Field sort(Sort sort)

    - #### getSort

          public Sort getSort()

      The sort for this field.
      Returns:
        sort

    - #### setSort

          public void setSort(Sort sort)

    - #### format

          public Field format(String format)

    - #### getFormat

          public String getFormat()

      The format for this field, depending on its type.
      Returns:
        format

    - #### setFormat

          public void setFormat(String format)

    - #### rules

          public Field rules(List<ValidationRule> rules)

    - #### addRulesItem

          public Field addRulesItem(ValidationRule rulesItem)

    - #### getRules

          public List<ValidationRule> getRules()

      The validation rules that should be applied for this field.
      Returns:
        rules

    - #### setRules

          public void setRules(List<ValidationRule> rules)

    - #### fields

          public Field fields(List<Field> fields)

    - #### addFieldsItem

          public Field addFieldsItem(Field fieldsItem)

    - #### getFields

          public List<Field> getFields()

      The child fields of this field.
      Returns:
        fields

    - #### setFields

          public void setFields(List<Field> fields)

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