Enum Class DefaultProductVariantHydrationBehavior
java.lang.Object
java.lang.Enum<DefaultProductVariantHydrationBehavior>
com.broadleafcommerce.cartoperation.service.provider.external.DefaultProductVariantHydrationBehavior
- All Implemented Interfaces:
Serializable,Comparable<DefaultProductVariantHydrationBehavior>,Constable
public enum DefaultProductVariantHydrationBehavior
extends Enum<DefaultProductVariantHydrationBehavior>
Defines the default supported behaviors for hydrating the direct
Variants of a
requested Product. This does not affect hydrating Variants for
SpecificItemChoices or IncludedProducts.- Since:
- Cart Operations 2.3.0-GA, Release Train 2.3.0-GA
- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll direct variants will be hydrated.Only the variant whoseSKUmatches theparent product's SKUor whoseVariant.getOptionValues()match the defaultAttribute Choice valueswill be hydrated.No variants will be hydrated unless explicitly requested. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
All direct variants will be hydrated. -
DEFAULT_ONLY
Only the variant whoseSKUmatches theparent product's SKUor whoseVariant.getOptionValues()match the defaultAttribute Choice valueswill be hydrated. -
NONE
No variants will be hydrated unless explicitly requested.
-
-
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
-