Class ChangeLabelChangeImpl

java.lang.Object
com.commercetools.history.models.change.ChangeLabelChangeImpl
All Implemented Interfaces:
Change, ChangeLabelChange, io.vrap.rmf.base.client.ModelBase

public class ChangeLabelChangeImpl extends Object implements ChangeLabelChange, io.vrap.rmf.base.client.ModelBase

Change triggered by the following update actions:

  • Change AttributeDefinition Label on Product Types.
  • Change FieldDefinition Label on Types.
  • Constructor Details

    • ChangeLabelChangeImpl

      public ChangeLabelChangeImpl()
      create empty instance
  • Method Details

    • getType

      public String getType()
      Description copied from interface: Change

      Unique discriminator value to reliably deserialize the data type.

      Specified by:
      getType in interface Change
      Specified by:
      getType in interface ChangeLabelChange
      Returns:
      type
    • getChange

      public String getChange()
      Description copied from interface: Change

      Type of change on a resource that is similar to the update action it relates to, where possible. It is not a unique identifier for the data structure, for example, the setDescription change can occur with a localized and non-localized representation.

      Records can be filtered by this value using the changes query parameter.

      Specified by:
      getChange in interface Change
      Specified by:
      getChange in interface ChangeLabelChange
      Returns:
      change
    • getPreviousValue

      public LocalizedString getPreviousValue()

      Value before the change.

      Specified by:
      getPreviousValue in interface ChangeLabelChange
      Returns:
      previousValue
    • getNextValue

      public LocalizedString getNextValue()

      Value after the change.

      Specified by:
      getNextValue in interface ChangeLabelChange
      Returns:
      nextValue
    • getFieldName

      public String getFieldName()

      Name of the updated FieldDefinition; only present on changes to Types).

      Specified by:
      getFieldName in interface ChangeLabelChange
      Returns:
      fieldName
    • getAttributeName

      public String getAttributeName()

      Name of the updated AttributeDefinition; only present on changes to Product Types.

      Specified by:
      getAttributeName in interface ChangeLabelChange
      Returns:
      attributeName
    • setChange

      public void setChange(String change)
      Description copied from interface: ChangeLabelChange
      set change
      Specified by:
      setChange in interface Change
      Specified by:
      setChange in interface ChangeLabelChange
      Parameters:
      change - value to be set
    • setPreviousValue

      public void setPreviousValue(LocalizedString previousValue)
      Description copied from interface: ChangeLabelChange

      Value before the change.

      Specified by:
      setPreviousValue in interface ChangeLabelChange
      Parameters:
      previousValue - value to be set
    • setNextValue

      public void setNextValue(LocalizedString nextValue)
      Description copied from interface: ChangeLabelChange

      Value after the change.

      Specified by:
      setNextValue in interface ChangeLabelChange
      Parameters:
      nextValue - value to be set
    • setFieldName

      public void setFieldName(String fieldName)
      Description copied from interface: ChangeLabelChange

      Name of the updated FieldDefinition; only present on changes to Types).

      Specified by:
      setFieldName in interface ChangeLabelChange
      Parameters:
      fieldName - value to be set
    • setAttributeName

      public void setAttributeName(String attributeName)
      Description copied from interface: ChangeLabelChange

      Name of the updated AttributeDefinition; only present on changes to Product Types.

      Specified by:
      setAttributeName in interface ChangeLabelChange
      Parameters:
      attributeName - 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