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 a Product and AdvancedTag.
Author:
Nathan Moore (nathandmoore)
See Also:
  • Constructor Details

    • ProductTag

      public ProductTag()
  • Method Details

    • 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 attribute
      value - 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()
      The AdvancedTag 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)
      The AdvancedTag to associate with a product.
      Parameters:
      tag - The AdvancedTag 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.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object