Class CharacteristicValue

java.lang.Object
com.broadleafcommerce.cartoperation.domain.CharacteristicValue
All Implemented Interfaces:
Serializable

public class CharacteristicValue extends Object implements Serializable
Represents a value for a Characteristic.
Since:
Cart Operation Service 2.2.0, Release Train 2.2.0
See Also:
  • Constructor Details

    • CharacteristicValue

      public CharacteristicValue()
  • Method Details

    • 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".
    • getRangeStep

      public Integer getRangeStep()
      The distance between valid values in a range, e.g., 1 would indicate each discrete value is separated by 1 from its neighbors, 1, 2, 3.
    • 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 String getValueFrom()
      Lower bound for the value.
    • getValueTo

      public String 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.
    • 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".
    • setRangeStep

      public void setRangeStep(Integer rangeStep)
      The distance between valid values in a range, e.g., 1 would indicate each discrete value is separated by 1 from its neighbors, 1, 2, 3.
    • 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(String valueFrom)
      Lower bound for the value.
    • setValueTo

      public void setValueTo(String 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