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
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 primary id of the category.getName()The name of the category.getUrl()The url of the category.inthashCode()voidsetAttributes(Map<String, Object> attributes) Map holding any additional attributes passed in the request not matching any defined properties.voidThe primary id of the category.voidThe name of the category.voidThe 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
-