Class ProductTag
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.domain.ProductTag
-
- All Implemented Interfaces:
Serializable
public class ProductTag extends Object implements Serializable
This defines the relationship between aProduct
andAdvancedTag
.- Author:
- Nathan Moore (nathandmoore)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProductTag()
-
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()
A unique system identifier.String
getProductId()
ID of the parent product.String
getSorting()
Field indicating a sort order, if sorted.AdvancedTag
getTag()
TheAdvancedTag
to associate with a product.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)
A unique system identifier.void
setProductId(String productId)
ID of the parent product.void
setSorting(String sorting)
Field indicating a sort order, if sorted.void
setTag(AdvancedTag tag)
TheAdvancedTag
to associate with a product.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()
A unique system identifier.- Returns:
- A unique system identifier.
-
getTag
public AdvancedTag getTag()
TheAdvancedTag
to associate with a product.- Returns:
- The
AdvancedTag
to associate with a product.
-
getSorting
public String getSorting()
Field indicating a sort order, if sorted. This is alphanumeric, allowing for lexicographical sorting.- Returns:
- Field indicating a sort order, if sorted.
-
getProductId
public String getProductId()
ID of the parent product.- Returns:
- ID of the parent product.
-
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)
A unique system identifier.- Parameters:
id
- A unique system identifier.
-
setTag
public void setTag(AdvancedTag tag)
TheAdvancedTag
to associate with a product.- Parameters:
tag
- TheAdvancedTag
to associate with a product.
-
setSorting
public void setSorting(String sorting)
Field indicating a sort order, if sorted. This is alphanumeric, allowing for lexicographical sorting.- Parameters:
sorting
- Field indicating a sort order, if sorted.
-
setProductId
public void setProductId(String productId)
ID of the parent product.- Parameters:
productId
- ID of the parent product.
-
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)
-
-