Class ProductCharacteristic

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

public class ProductCharacteristic extends Object implements Serializable
Links a Product to a Characteristic and holds the actual value for that Characteristic on the Product.
Since:
Cart Operation Service 2.2.0, Release Train 2.2.0
Author:
Nathan Moore (nathandmoore)
See Also:
  • Constructor Details

    • ProductCharacteristic

      public ProductCharacteristic()
  • Method Details

    • getValue

      public List<ProductCharacteristicValue> getValue()
    • getFieldName

      public String getFieldName()
      Name of the field
    • getFieldType

      public String getFieldType()
      Type of the field
    • getCharacteristic

      public Characteristic getCharacteristic()
      The Characteristic definition associated with this product. Not fully hydrated by default.
    • setFieldName

      public void setFieldName(String fieldName)
      Name of the field
    • setFieldType

      public void setFieldType(String fieldType)
      Type of the field
    • setValue

      public void setValue(List<ProductCharacteristicValue> value)
      The list of values associated with this field
    • setCharacteristic

      public void setCharacteristic(Characteristic characteristic)
      The Characteristic definition associated with this product. Not fully hydrated by default.
    • 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