Class ProductCharacteristic
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanTheCharacteristicdefinition associated with this product.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset of Tracking information to expose the context state for this object.Name of the fieldType of the fieldgetId()The context ID of the product characteristic.com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeContainerThe contextId of the product this characteristic belongs togetValue()The list of values associated with this field.inthashCode()voidsetCharacteristic(Characteristic characteristic) TheCharacteristicdefinition associated with this product.voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset of Tracking information to expose the context state for this object.voidsetFieldName(String fieldName) Name of the fieldvoidsetFieldType(String fieldType) Type of the fieldvoidThe context ID of the product characteristic.voidsetOverrideChangeContainer(com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeContainer overrideChangeContainer) voidsetProductId(String productId) The contextId of the product this characteristic belongs tovoidsetValue(List<ProductCharacteristicValue> value) The list of values associated with this field.toString()
-
Constructor Details
-
ProductCharacteristic
public ProductCharacteristic()
-
-
Method Details
-
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
The contextId of the product this characteristic belongs to- Since:
- Catalog Service 2.3.0, Release Train 2.3.0
-
getFieldName
Name of the field -
getFieldType
Type of the field -
getValue
The list of values associated with this field. -
getCharacteristic
TheCharacteristicdefinition 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:
getContextStatein interfacecom.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:
getOverrideChangeContainerin interfacecom.broadleafcommerce.data.tracking.core.ChangeContainerOverridable
-
setId
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
The contextId of the product this characteristic belongs to- Since:
- Catalog Service 2.3.0, Release Train 2.3.0
-
setFieldName
Name of the field -
setFieldType
Type of the field -
setValue
The list of values associated with this field. -
setCharacteristic
TheCharacteristicdefinition 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:
setContextStatein interfacecom.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:
setOverrideChangeContainerin interfacecom.broadleafcommerce.data.tracking.core.ChangeContainerOverridable
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-