Class TimeAttributeImpl

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

public class TimeAttributeImpl extends Object implements TimeAttribute, io.vrap.rmf.base.client.ModelBase

This type represents an attribute whose value is a time.

  • 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.TimeAttribute

    TIME
  • 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 io.vrap.rmf.base.client.ModelBase

    reflectionString, reflectionString

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

    withTimeAttribute
  • Constructor Details

    • TimeAttributeImpl

      public TimeAttributeImpl()
      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 LocalTime getValue()
      Specified by:
      getValue in interface TimeAttribute
      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(LocalTime value)
      Description copied from interface: TimeAttribute
      set value
      Specified by:
      setValue in interface TimeAttribute
      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