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 anItemChoicetargeting acategoryuseful for a commerce-facing product details page.- Author:
- Nathan Moore (nathandmoore)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ItemChoiceCategory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttribute(String name, Object value)Takes in any additional attributes passed in the request not matching any defined properties.protected booleancanEqual(Object other)booleanequals(Object o)Map<String,Object>getAttribute()Return any additional attributes passed in the request not matching any defined properties.Map<String,Object>getAttributes()Map holding any additional attributes passed in the request not matching any defined properties.StringgetId()The ID of the category.SimplePage<Product>getProducts()ASimplePageofProductsfor the category to choose from.inthashCode()voidsetAttributes(Map<String,Object> attributes)Map holding any additional attributes passed in the request not matching any defined properties.voidsetId(String id)The ID of the category.voidsetProducts(SimplePage<Product> products)ASimplePageofProductsfor the category to choose from.StringtoString()
-
-
-
Method Detail
-
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 attributevalue- 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()
ASimplePageofProductsfor the category to choose from.- Returns:
- A
SimplePageofProductsfor 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)
ASimplePageofProductsfor the category to choose from.- Parameters:
products- ASimplePageofProductsfor 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.
-
canEqual
protected boolean canEqual(Object other)
-
-