Class DataDrivenEnumDetails
java.lang.Object
com.broadleafcommerce.catalog.domain.enumeration.commerce.DataDrivenEnumDetails
- All Implemented Interfaces:
Serializable
A structure containing all the info necessary for a data driven enum details section shown in a
commerce-facing app (as opposed to a PIM UI).
- Author:
- Sunny Yu
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDataDrivenEnumDetails(DataDrivenEnum dataDrivenEnum, boolean associatedCategoryExists) -
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
-
-
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)
-