Enum FacetSelectionType
- java.lang.Object
-
- java.lang.Enum<FacetSelectionType>
-
- com.funnelback.common.facetednavigation.models.FacetSelectionType
-
- All Implemented Interfaces:
Serializable
,Comparable<FacetSelectionType>
public enum FacetSelectionType extends Enum<FacetSelectionType>
Defines how facet selection works.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MULTIPLE
When a category value is selected other category values are left selected.SINGLE
When a category value is selected other category values of equal or lower depth are unselected.SINGLE_AND_UNSELECT_OTHER_FACETS
Unselects other facets when selected, useful for tab type facets.
-
Constructor Summary
Constructors Modifier Constructor Description private
FacetSelectionType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FacetSelectionType
valueOf(String name)
Returns the enum constant of this type with the specified name.static FacetSelectionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SINGLE_AND_UNSELECT_OTHER_FACETS
public static final FacetSelectionType SINGLE_AND_UNSELECT_OTHER_FACETS
Unselects other facets when selected, useful for tab type facets.
-
SINGLE
public static final FacetSelectionType SINGLE
When a category value is selected other category values of equal or lower depth are unselected.
-
MULTIPLE
public static final FacetSelectionType MULTIPLE
When a category value is selected other category values are left selected.
-
-
Method Detail
-
values
public static FacetSelectionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FacetSelectionType c : FacetSelectionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FacetSelectionType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-