Enum Class CategoryProductMembershipType
java.lang.Object
java.lang.Enum<CategoryProductMembershipType>
com.broadleafcommerce.catalog.domain.category.type.CategoryProductMembershipType
- All Implemented Interfaces:
Serializable
,Comparable<CategoryProductMembershipType>
,Constable
A CategoryProductMembershipType defines whether a Category
has explicitly
specified product members or a rule-based membership criteria.
- Author:
- Samarth Dhruva (samarthd)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe category has explicitly specified products that were manually added to the categoryProducts are determined to be included within this category if they match a configured rule. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isExplicit
(String type) static boolean
isRuleBased
(String type) Returns the enum constant of this class with the specified name.static CategoryProductMembershipType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RULE_BASED
Products are determined to be included within this category if they match a configured rule. There may also be explicit products.- See Also:
-
EXPLICIT
The category has explicitly specified products that were manually added to the category- See Also:
-
-
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
-
isRuleBased
-
isExplicit
-