Class ProductTag
java.lang.Object
com.broadleafcommerce.cartoperation.domain.ProductTag
- All Implemented Interfaces:
Serializable
This defines the relationship between a
Product
and AdvancedTag
.- Author:
- Nathan Moore (nathandmoore)
- 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()
A unique system identifier.ID of the parent product.Field indicating a sort order, if sorted.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
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.toString()
-
Constructor Details
-
ProductTag
public ProductTag()
-
-
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
A unique system identifier.- Returns:
- A unique system identifier.
-
getTag
TheAdvancedTag
to associate with a product.- Returns:
- The
AdvancedTag
to associate with a product.
-
getSorting
Field indicating a sort order, if sorted. This is alphanumeric, allowing for lexicographical sorting.- Returns:
- Field indicating a sort order, if sorted.
-
getProductId
ID of the parent product.- Returns:
- ID of the parent product.
-
getAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
setId
A unique system identifier.- Parameters:
id
- A unique system identifier.
-
setTag
TheAdvancedTag
to associate with a product.- Parameters:
tag
- TheAdvancedTag
to associate with a product.
-
setSorting
Field indicating a sort order, if sorted. This is alphanumeric, allowing for lexicographical sorting.- Parameters:
sorting
- Field indicating a sort order, if sorted.
-
setProductId
ID of the parent product.- Parameters:
productId
- ID of the parent product.
-
setAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-