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
ConstructorDescriptionDataDrivenEnumDetails
(DataDrivenEnum dataDrivenEnum, boolean associatedCategoryExists) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
getId()
getType()
getValue()
int
hashCode()
boolean
void
setAssociatedCategoryExists
(boolean associatedCategoryExists) void
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) void
setDataDrivenEnum
(DataDrivenEnum dataDrivenEnum) void
setDisplayValue
(String displayValue) void
void
void
toString()
-
Constructor Details
-
DataDrivenEnumDetails
public DataDrivenEnumDetails() -
DataDrivenEnumDetails
-
-
Method Details
-
getDataDrivenEnum
-
isAssociatedCategoryExists
public boolean isAssociatedCategoryExists()Declares whether there is aCategory
associated with thisdataDrivenEnum
based onits value
.Since
DataDrivenEnum
is 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
DataDrivenEnum
with the valueSOME_BRAND_NAME
, a category with the url/some-brand-name
is expected to be created for this brand. -
setDataDrivenEnum
-
setAssociatedCategoryExists
public void setAssociatedCategoryExists(boolean associatedCategoryExists) Declares whether there is aCategory
associated with thisdataDrivenEnum
based onits value
.Since
DataDrivenEnum
is 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
DataDrivenEnum
with the valueSOME_BRAND_NAME
, a category with the url/some-brand-name
is 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)
-