Class FieldDefinitionImpl

java.lang.Object
com.commercetools.history.models.common.FieldDefinitionImpl
All Implemented Interfaces:
FieldDefinition, io.vrap.rmf.base.client.ModelBase

public class FieldDefinitionImpl extends Object implements FieldDefinition, io.vrap.rmf.base.client.ModelBase
FieldDefinition
  • Constructor Details

    • FieldDefinitionImpl

      public FieldDefinitionImpl()
      create empty instance
  • Method Details

    • getType

      public FieldType getType()
      Specified by:
      getType in interface FieldDefinition
      Returns:
      type
    • getName

      public String getName()

      The name of the field. The name must be between two and 36 characters long and can contain the ASCII letters A to Z in lowercase or uppercase, digits, underscores (_) and the hyphen-minus (-). The name must be unique for a given resource type ID. In case there is a field with the same name in another type it has to have the same FieldType also.

      Specified by:
      getName in interface FieldDefinition
      Returns:
      name
    • getLabel

      public LocalizedString getLabel()
      Specified by:
      getLabel in interface FieldDefinition
      Returns:
      label
    • getInputHint

      public TextInputHint getInputHint()
      Specified by:
      getInputHint in interface FieldDefinition
      Returns:
      inputHint
    • setType

      public void setType(FieldType type)
      Description copied from interface: FieldDefinition
      set type
      Specified by:
      setType in interface FieldDefinition
      Parameters:
      type - value to be set
    • setName

      public void setName(String name)
      Description copied from interface: FieldDefinition

      The name of the field. The name must be between two and 36 characters long and can contain the ASCII letters A to Z in lowercase or uppercase, digits, underscores (_) and the hyphen-minus (-). The name must be unique for a given resource type ID. In case there is a field with the same name in another type it has to have the same FieldType also.

      Specified by:
      setName in interface FieldDefinition
      Parameters:
      name - value to be set
    • setLabel

      public void setLabel(LocalizedString label)
      Description copied from interface: FieldDefinition
      set label
      Specified by:
      setLabel in interface FieldDefinition
      Parameters:
      label - value to be set
    • setInputHint

      public void setInputHint(TextInputHint inputHint)
      Description copied from interface: FieldDefinition
      set inputHint
      Specified by:
      setInputHint in interface FieldDefinition
      Parameters:
      inputHint - value to be set
    • 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