Class DataDrivenEnumDetails
- All Implemented Interfaces:
Serializable
- Author:
- Sunny Yu
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDataDrivenEnumDetails(DataDrivenEnum dataDrivenEnum, boolean associatedCategoryExists) Creates a newDataDrivenEnumDetailsinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleancom.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStategetId()getType()getValue()inthashCode()booleanvoidsetAssociatedCategoryExists(boolean associatedCategoryExists) voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) voidsetDataDrivenEnum(DataDrivenEnum dataDrivenEnum) voidsetDisplayValue(String displayValue) voidvoidvoidtoString()
-
Constructor Details
-
DataDrivenEnumDetails
public DataDrivenEnumDetails() -
DataDrivenEnumDetails
Creates a newDataDrivenEnumDetailsinstance.- Parameters:
dataDrivenEnum-associatedCategoryExists- Declares whether there is aCategoryassociated with thisdataDrivenEnumbased onits value.Since
DataDrivenEnumis used to represent some product fields such asproduct's brand, there are categories expected to exist to further categorize products based on the data driven enum values.For example, if a product's brand is a
DataDrivenEnumwith the valueSOME_BRAND_NAME, a category with the url/some-brand-nameis expected to be created for this brand.
-
-
Method Details
-
getDataDrivenEnum
-
isAssociatedCategoryExists
public boolean isAssociatedCategoryExists()Declares whether there is aCategoryassociated with thisdataDrivenEnumbased onits value.Since
DataDrivenEnumis used to represent some product fields such asproduct's brand, there are categories expected to exist to further categorize products based on the data driven enum values.For example, if a product's brand is a
DataDrivenEnumwith the valueSOME_BRAND_NAME, a category with the url/some-brand-nameis expected to be created for this brand. -
setDataDrivenEnum
-
setAssociatedCategoryExists
public void setAssociatedCategoryExists(boolean associatedCategoryExists) Declares whether there is aCategoryassociated with thisdataDrivenEnumbased onits value.Since
DataDrivenEnumis used to represent some product fields such asproduct's brand, there are categories expected to exist to further categorize products based on the data driven enum values.For example, if a product's brand is a
DataDrivenEnumwith the valueSOME_BRAND_NAME, a category with the url/some-brand-nameis expected to be created for this brand. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getId
-
getType
-
getValue
-
getDisplayValue
-
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState() -
setId
-
setType
-
setValue
-
setDisplayValue
-
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
-