Enum Class DefaultTagType

java.lang.Object
java.lang.Enum<DefaultTagType>
com.broadleafcommerce.catalog.domain.type.DefaultTagType
All Implemented Interfaces:
Serializable, Comparable<DefaultTagType>, Constable

public enum DefaultTagType extends Enum<DefaultTagType>
Defines the type of a AdvancedTag. This helps categorize them along with the DefaultTagDisplayPosition to allow prioritizing related kinds of tags. For example, this could allow a user to only display one "discount" tag even if multiple apply.

The default types are suggestions and ideas. No concrete logic is tied to them by default. User's should feel free to define their own types that suit their business needs.

Author:
Nathan Moore (nathandmoore)
  • Enum Constant Details

    • GENERIC

      public static final DefaultTagType GENERIC
      Means that a tag is uncategorized.
    • FEATURE

      public static final DefaultTagType FEATURE
      Means that a tag signifies a key feature of an item such as being "Fairtrade". This is distinguished form ATTRIBUTE insofar as a feature is intrinsic to the item rather than subjective or mutable.
    • ATTRIBUTE

      public static final DefaultTagType ATTRIBUTE
      Means that a tag signifies an important attribute of an item such as "New", "Staff Pick", "Seller's Choice". This is distinguished from FEATURE insofar as an attribute is subjective (staff pick) or mutable (new).
    • DISCOUNT

      public static final DefaultTagType DISCOUNT
      Means that a tag signifies a discount such as "On Sale", "20% Off", "Clearance", etc.
  • Method Details

    • values

      public static DefaultTagType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DefaultTagType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null