Class DataDrivenEnumDetails

java.lang.Object
com.broadleafcommerce.catalog.domain.enumeration.commerce.DataDrivenEnumDetails
All Implemented Interfaces:
Serializable

public class DataDrivenEnumDetails extends Object implements 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 Details

    • DataDrivenEnumDetails

      public DataDrivenEnumDetails()
    • DataDrivenEnumDetails

      public DataDrivenEnumDetails(DataDrivenEnum dataDrivenEnum, boolean associatedCategoryExists)
  • Method Details

    • getDataDrivenEnum

      public DataDrivenEnum getDataDrivenEnum()
    • isAssociatedCategoryExists

      public boolean isAssociatedCategoryExists()
      Declares whether there is a Category associated with this dataDrivenEnum based on its value.

      Since DataDrivenEnum is used to represent some product fields such as product'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 value SOME_BRAND_NAME, a category with the url /some-brand-name is expected to be created for this brand.

    • setDataDrivenEnum

      public void setDataDrivenEnum(DataDrivenEnum dataDrivenEnum)
    • setAssociatedCategoryExists

      public void setAssociatedCategoryExists(boolean associatedCategoryExists)
      Declares whether there is a Category associated with this dataDrivenEnum based on its value.

      Since DataDrivenEnum is used to represent some product fields such as product'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 value SOME_BRAND_NAME, a category with the url /some-brand-name is expected to be created for this brand.

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getId

      public String getId()
    • getType

      public String getType()
    • getValue

      public String getValue()
    • getDisplayValue

      public String getDisplayValue()
    • getContextState

      public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()
    • setId

      public void setId(String id)
    • setType

      public void setType(String type)
    • setValue

      public void setValue(String value)
    • setDisplayValue

      public void setDisplayValue(String displayValue)
    • setContextState

      public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)