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
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()A unique system identifier.ID of the parent product.Field indicating a sort order, if sorted.getTag()TheAdvancedTagto associate with a product.inthashCode()voidsetAttributes(Map<String, Object> attributes) Map holding any additional attributes passed in the request not matching any defined properties.voidA unique system identifier.voidsetProductId(String productId) ID of the parent product.voidsetSorting(String sorting) Field indicating a sort order, if sorted.voidsetTag(AdvancedTag tag) TheAdvancedTagto 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
TheAdvancedTagto associate with a product.- Returns:
- The
AdvancedTagto 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
TheAdvancedTagto associate with a product.- Parameters:
tag- TheAdvancedTagto 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
-