Enum Class DefaultTagType
- All Implemented Interfaces:
Serializable
,Comparable<DefaultTagType>
,Constable
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)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionMeans that a tag signifies an important attribute of an item such as "New", "Staff Pick", "Seller's Choice".Means that a tag signifies a discount such as "On Sale", "20% Off", "Clearance", etc.Means that a tag signifies a key feature of an item such as being "Fairtrade".Means that a tag is uncategorized. -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultTagType
Returns the enum constant of this class with the specified name.static DefaultTagType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GENERIC
Means that a tag is uncategorized. -
FEATURE
Means that a tag signifies a key feature of an item such as being "Fairtrade". This is distinguished formATTRIBUTE
insofar as a feature is intrinsic to the item rather than subjective or mutable. -
ATTRIBUTE
Means that a tag signifies an important attribute of an item such as "New", "Staff Pick", "Seller's Choice". This is distinguished fromFEATURE
insofar as an attribute is subjective (staff pick) or mutable (new). -
DISCOUNT
Means that a tag signifies a discount such as "On Sale", "20% Off", "Clearance", etc.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-