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