Class ItemChoiceCategory

java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.ItemChoiceCategory
All Implemented Interfaces:
Serializable

public class ItemChoiceCategory extends Object implements Serializable
A structure containing the details of an ItemChoice targeting a category useful for a commerce-facing product details page.
Author:
Nathan Moore (nathandmoore)
See Also:
  • Constructor Details

    • ItemChoiceCategory

      public ItemChoiceCategory()
  • Method Details

    • addAttribute

      public void addAttribute(String name, Object value)
      Takes in any additional attributes passed in the request not matching any defined properties.
      Parameters:
      name - Name of the additional attribute
      value - Value of the additional attribute
    • getAttribute

      public Map<String,Object> getAttribute()
      Return any additional attributes passed in the request not matching any defined properties.
      Returns:
      any additional attributes passed in the request not matching any defined properties.
    • getId

      public String getId()
      The ID of the category.
      Returns:
      The ID of the category.
    • getProducts

      public SimplePage<Product> getProducts()
      A SimplePage of Products for the category to choose from.
      Returns:
      A SimplePage of Products for the category to choose from.
    • getAttributes

      public Map<String,Object> getAttributes()
      Map holding any additional attributes passed in the request not matching any defined properties.
    • setId

      public void setId(String id)
      The ID of the category.
      Parameters:
      id - The ID of the category.
    • setProducts

      public void setProducts(SimplePage<Product> products)
      A SimplePage of Products for the category to choose from.
      Parameters:
      products - A SimplePage of Products for the category to choose from.
    • setAttributes

      public void setAttributes(Map<String,Object> attributes)
      Map holding any additional attributes passed in the request not matching any defined properties.
    • 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