Class Characteristic
java.lang.Object
com.broadleafcommerce.cartoperation.domain.Characteristic
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware,Serializable
public class Characteristic
extends Object
implements com.broadleafcommerce.data.tracking.core.ContextStateAware, Serializable
Represents a characteristic of a Product.
- Since:
- Cart Operation Service 2.2.0, Release Train 2.2.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleancom.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation to expose the context state for this object.Description for the characteristic.Display order for the characteristic.End date for the characteristic.The error message to display if the validation rule fails.Internal field name of the characteristic.getId()Id of the characteristic.intMaximum cardinality for the characteristic.intMinimum cardinality for the characteristic.getName()Name of the characteristic.Start date for the characteristic.The validation rule to apply to the characteristic's value.The type of validation to apply to the characteristic's value.getValue()List of values for the characteristic.Value type for the characteristic.inthashCode()booleanDetermines if the characteristic is configurable.booleanDetermines if the characteristic is extensible.booleanisShared()Determines if the characteristic is shared between Specifications.booleanWhether this characteristic should be targetable by pricing, e.g., a product's price should change depending on the value of this characteristic.booleanWhether this characteristic should be targetable in rule-builders (e.g., by Offers and Content Items).booleanisUnique()Determines if the characteristic's value must be unique.voidsetConfigurable(boolean configurable) Determines if the characteristic is configurable.voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidsetDescription(String description) Description for the characteristic.voidsetDisplayOrder(Integer displayOrder) Display order for the characteristic.voidsetEndDate(Instant endDate) End date for the characteristic.voidsetErrorMessage(String errorMessage) The error message to display if the validation rule fails.voidsetExtensible(boolean extensible) Determines if the characteristic is extensible.voidsetFieldName(String fieldName) Internal field name of the characteristic.voidId of the characteristic.voidsetMaxCardinality(int maxCardinality) Maximum cardinality for the characteristic.voidsetMinCardinality(int minCardinality) Minimum cardinality for the characteristic.voidName of the characteristic.voidsetShared(boolean shared) Determines if the characteristic is shared between Specifications.voidsetStartDate(Instant startDate) Start date for the characteristic.voidsetTargetableForPricing(boolean targetableForPricing) Whether this characteristic should be targetable by pricing, e.g., a product's price should change depending on the value of this characteristic.voidsetTargetableInRuleBuilders(boolean targetableInRuleBuilders) Whether this characteristic should be targetable in rule-builders (e.g., by Offers and Content Items).voidsetUnique(boolean unique) Determines if the characteristic's value must be unique.voidsetValidationRule(String validationRule) The validation rule to apply to the characteristic's value.voidsetValidationType(String validationType) The type of validation to apply to the characteristic's value.voidsetValue(List<CharacteristicValue> value) List of values for the characteristic.voidsetValueType(String valueType) Value type for the characteristic.toString()
-
Constructor Details
-
Characteristic
public Characteristic()
-
-
Method Details
-
getId
Id of the characteristic. -
getName
Name of the characteristic. -
getFieldName
Internal field name of the characteristic. -
getDescription
Description for the characteristic. -
getStartDate
Start date for the characteristic. -
getEndDate
End date for the characteristic. -
getValueType
Value type for the characteristic. -
isConfigurable
public boolean isConfigurable()Determines if the characteristic is configurable. -
isUnique
public boolean isUnique()Determines if the characteristic's value must be unique. -
isTargetableInRuleBuilders
public boolean isTargetableInRuleBuilders()Whether this characteristic should be targetable in rule-builders (e.g., by Offers and Content Items). -
isTargetableForPricing
public boolean isTargetableForPricing()Whether this characteristic should be targetable by pricing, e.g., a product's price should change depending on the value of this characteristic. -
getMinCardinality
public int getMinCardinality()Minimum cardinality for the characteristic. -
getMaxCardinality
public int getMaxCardinality()Maximum cardinality for the characteristic. -
isExtensible
public boolean isExtensible()Determines if the characteristic is extensible. -
getValue
List of values for the characteristic. -
getDisplayOrder
Display order for the characteristic. -
getValidationType
The type of validation to apply to the characteristic's value. -
getValidationRule
The validation rule to apply to the characteristic's value. -
getErrorMessage
The error message to display if the validation rule fails. -
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()A subset ofTrackinginformation to expose the context state for this object.- Specified by:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Returns:
- a subset of
Trackinginformation to expose the context state for this object
-
setId
Id of the characteristic. -
setName
Name of the characteristic. -
setFieldName
Internal field name of the characteristic. -
setDescription
Description for the characteristic. -
setStartDate
Start date for the characteristic. -
setEndDate
End date for the characteristic. -
setValueType
Value type for the characteristic. -
setConfigurable
public void setConfigurable(boolean configurable) Determines if the characteristic is configurable. -
setUnique
public void setUnique(boolean unique) Determines if the characteristic's value must be unique. -
setTargetableInRuleBuilders
public void setTargetableInRuleBuilders(boolean targetableInRuleBuilders) Whether this characteristic should be targetable in rule-builders (e.g., by Offers and Content Items). -
setTargetableForPricing
public void setTargetableForPricing(boolean targetableForPricing) Whether this characteristic should be targetable by pricing, e.g., a product's price should change depending on the value of this characteristic. -
setMinCardinality
public void setMinCardinality(int minCardinality) Minimum cardinality for the characteristic. -
setMaxCardinality
public void setMaxCardinality(int maxCardinality) Maximum cardinality for the characteristic. -
setExtensible
public void setExtensible(boolean extensible) Determines if the characteristic is extensible. -
setValue
List of values for the characteristic. -
setDisplayOrder
Display order for the characteristic. -
setValidationType
The type of validation to apply to the characteristic's value. -
setValidationRule
The validation rule to apply to the characteristic's value. -
setErrorMessage
The error message to display if the validation rule fails. -
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.- Specified by:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Parameters:
contextState- a subset ofTrackinginformation to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-