Class Category
java.lang.Object
com.broadleafcommerce.cartoperation.domain.Category
- All Implemented Interfaces:
Serializable
A reference to a category, typically used as a holder for information communicated from an
external service.
- Author:
- Chad Harchar (charchar)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(String name, Object value) Takes in any additional attributes passed in the request not matching any defined properties.protected boolean
boolean
Return 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 primary id of the category.getName()
The name of the category.getUrl()
The url of the category.int
hashCode()
void
setAttributes
(Map<String, Object> attributes) Map holding any additional attributes passed in the request not matching any defined properties.void
The primary id of the category.void
The name of the category.void
The url of the category.toString()
-
Constructor Details
-
Category
public Category()
-
-
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 primary id of the category.- Returns:
- The primary id of the category.
-
getName
The name of the category.- Returns:
- The name of the category.
-
getUrl
The url of the category.- Returns:
- The url of the category.
-
getAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
setId
The primary id of the category.- Parameters:
id
- The primary id of the category.
-
setName
The name of the category.- Parameters:
name
- The name of the category.
-
setUrl
The url of the category.- Parameters:
url
- The url of the category.
-
setAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-