java.lang.Object
com.broadleafcommerce.catalog.domain.product.characteristic.CharacteristicValue
All Implemented Interfaces:
com.broadleafcommerce.translation.mapping.SubIdentifiable, Serializable

public class CharacteristicValue extends Object implements Serializable, com.broadleafcommerce.translation.mapping.SubIdentifiable
Represents a value for a Characteristic.
Since:
Catalog Service 2.2.0, Release Train 2.2.0
See Also:
  • Constructor Details

    • CharacteristicValue

      public CharacteristicValue()
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface com.broadleafcommerce.translation.mapping.SubIdentifiable
      See Also:
      • SubIdentifiable.getId()
    • isDefault

      public boolean isDefault()
      Whether this is the default value to use.
    • getRangeInterval

      public String getRangeInterval()
      An indicator that specifies the inclusion or exclusion of the valueFrom and valueTo attributes. If applicable, possible values are "open", "closed", "closedBottom" and "closedTop".
      See Also:
    • getUnitOfMeasure

      public String getUnitOfMeasure()
      Units used by the value.
    • getStartDate

      public Instant getStartDate()
      Date when this value begins to be active.
    • getEndDate

      public Instant getEndDate()
      Date after which this value is no longer active.
    • getLabel

      public String getLabel()
      A display label to use for complex value types like ENUM or VARIANT_OPTION.
    • getValue

      public Object getValue()
      The simple value. This should not be a complex object. If additional fields are desired such as a label, display order, or the like, refer to those fields if already present on this domain or store them in attributes.
    • getValueFrom

      public Integer getValueFrom()
      Lower bound for the value.
    • getValueTo

      public Integer getValueTo()
      Upper bound for the value.
    • getValueType

      public String getValueType()
      The type of this value, e.g., enum, string, etc.
    • getDisplayOrder

      public Integer getDisplayOrder()
      The order this value should display in.
    • getAttributes

      public Map<String,Object> getAttributes()
      Additional custom attributes associated with extensions and complex value types, e.g., enum, variant option.
    • setId

      public void setId(String id)
      Specified by:
      setId in interface com.broadleafcommerce.translation.mapping.SubIdentifiable
      See Also:
      • SubIdentifiable.getId()
    • setDefault

      public void setDefault(boolean isDefault)
      Whether this is the default value to use.
    • setRangeInterval

      public void setRangeInterval(String rangeInterval)
      An indicator that specifies the inclusion or exclusion of the valueFrom and valueTo attributes. If applicable, possible values are "open", "closed", "closedBottom" and "closedTop".
      See Also:
    • setUnitOfMeasure

      public void setUnitOfMeasure(String unitOfMeasure)
      Units used by the value.
    • setStartDate

      public void setStartDate(Instant startDate)
      Date when this value begins to be active.
    • setEndDate

      public void setEndDate(Instant endDate)
      Date after which this value is no longer active.
    • setLabel

      public void setLabel(String label)
      A display label to use for complex value types like ENUM or VARIANT_OPTION.
    • setValue

      public void setValue(Object value)
      The simple value. This should not be a complex object. If additional fields are desired such as a label, display order, or the like, refer to those fields if already present on this domain or store them in attributes.
    • setValueFrom

      public void setValueFrom(Integer valueFrom)
      Lower bound for the value.
    • setValueTo

      public void setValueTo(Integer valueTo)
      Upper bound for the value.
    • setValueType

      public void setValueType(String valueType)
      The type of this value, e.g., enum, string, etc.
    • setDisplayOrder

      public void setDisplayOrder(Integer displayOrder)
      The order this value should display in.
    • setAttributes

      public void setAttributes(Map<String,Object> attributes)
      Additional custom attributes associated with extensions and complex value types, e.g., enum, variant option.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object