Class ItemChoiceCategory
java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.ItemChoiceCategory
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(String name, Object value) Takes in any additional attributes passed in the request not matching any defined properties.protected booleanbooleanReturn any additional attributes passed in the request not matching any defined properties.Map holding any additional attributes passed in the request not matching any defined properties.getId()The ID of the category.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.voidThe ID of the category.voidsetProducts(SimplePage<Product> products) ASimplePageofProductsfor the category to choose from.toString()
-
Constructor Details
-
ItemChoiceCategory
public ItemChoiceCategory()
-
-
Method Details
-
addAttribute
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
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
The ID of the category.- Returns:
- The ID of the category.
-
getProducts
ASimplePageofProductsfor the category to choose from.- Returns:
- A
SimplePageofProductsfor the category to choose from.
-
getAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
setId
The ID of the category.- Parameters:
id- The ID of the category.
-
setProducts
ASimplePageofProductsfor the category to choose from.- Parameters:
products- ASimplePageofProductsfor the category to choose from.
-
setAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-