Class BooleanAttributeImpl

java.lang.Object
com.commercetools.importapi.models.productvariants.BooleanAttributeImpl
All Implemented Interfaces:
Attribute, BooleanAttribute, io.vrap.rmf.base.client.ModelBase

public class BooleanAttributeImpl extends Object implements BooleanAttribute, io.vrap.rmf.base.client.ModelBase

This type represents an attribute whose value is either "true" or "false".

  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase

    io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
  • Field Summary

    Fields inherited from interface com.commercetools.importapi.models.productvariants.BooleanAttribute

    BOOLEAN
  • Constructor Summary

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    The name of this attribute must match a name of the product types attribute definitions.
     
     
    int
     
    void
    The name of this attribute must match a name of the product types attribute definitions.
    void
    set value
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.commercetools.importapi.models.productvariants.Attribute

    withAttribute

    Methods inherited from interface com.commercetools.importapi.models.productvariants.BooleanAttribute

    withBooleanAttribute

    Methods inherited from interface io.vrap.rmf.base.client.ModelBase

    reflectionString, reflectionString
  • Constructor Details

    • BooleanAttributeImpl

      public BooleanAttributeImpl()
      create empty instance
  • Method Details

    • getName

      public String getName()

      The name of this attribute must match a name of the product types attribute definitions. The name is required if this type is used in a product variant and must not be set when used in a product variant patch.

      Specified by:
      getName in interface Attribute
      Returns:
      name
    • getType

      public String getType()
      Specified by:
      getType in interface Attribute
      Returns:
      type
    • getValue

      public Boolean getValue()
      Specified by:
      getValue in interface BooleanAttribute
      Returns:
      value
    • setName

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

      The name of this attribute must match a name of the product types attribute definitions. The name is required if this type is used in a product variant and must not be set when used in a product variant patch.

      Specified by:
      setName in interface Attribute
      Parameters:
      name - value to be set
    • setValue

      public void setValue(Boolean value)
      Description copied from interface: BooleanAttribute
      set value
      Specified by:
      setValue in interface BooleanAttribute
      Parameters:
      value - 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