java.lang.Object
com.broadleafcommerce.catalog.domain.product.characteristic.ProductCharacteristic
All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ChangeContainerOverridable, com.broadleafcommerce.data.tracking.core.ContextStateAware, Serializable

public class ProductCharacteristic extends Object implements Serializable, com.broadleafcommerce.data.tracking.core.ChangeContainerOverridable, com.broadleafcommerce.data.tracking.core.ContextStateAware
Links a Product to a Characteristic and holds the actual value for that Characteristic on the Product.
Since:
Catalog Service 2.2.0, Release Train 2.2.0
See Also:
  • Constructor Details

    • ProductCharacteristic

      public ProductCharacteristic()
  • Method Details

    • getId

      public String getId()
      The context ID of the product characteristic.
      Returns:
      the context ID of the product characteristic
      Since:
      Catalog Service 2.3.0, Release Train 2.3.0
    • getProductId

      public String getProductId()
      The contextId of the product this characteristic belongs to
      Since:
      Catalog Service 2.3.0, Release Train 2.3.0
    • getFieldName

      public String getFieldName()
      Name of the field
    • getFieldType

      public String getFieldType()
      Type of the field
    • getValue

      public List<ProductCharacteristicValue> getValue()
      The list of values associated with this field.
    • getCharacteristic

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

      public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()
      A subset of Tracking information to expose the context state for this object.
      Specified by:
      getContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
      Since:
      Catalog Service 2.3.0, Release Train 2.3.0
    • getOverrideChangeContainer

      public com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeContainer getOverrideChangeContainer()
      Specified by:
      getOverrideChangeContainer in interface com.broadleafcommerce.data.tracking.core.ChangeContainerOverridable
    • setId

      public void setId(String id)
      The context ID of the product characteristic.
      Parameters:
      id - the context ID of the product characteristic
      Since:
      Catalog Service 2.3.0, Release Train 2.3.0
    • setProductId

      public void setProductId(String productId)
      The contextId of the product this characteristic belongs to
      Since:
      Catalog Service 2.3.0, Release Train 2.3.0
    • 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.
    • setContextState

      public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
      A subset of Tracking information to expose the context state for this object.
      Specified by:
      setContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
      Since:
      Catalog Service 2.3.0, Release Train 2.3.0
    • setOverrideChangeContainer

      public void setOverrideChangeContainer(com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeContainer overrideChangeContainer)
      Specified by:
      setOverrideChangeContainer in interface com.broadleafcommerce.data.tracking.core.ChangeContainerOverridable
    • 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