Enum AddItemFailure.AddItemFailureType
- java.lang.Object
-
- java.lang.Enum<AddItemFailure.AddItemFailureType>
-
- com.broadleafcommerce.cartoperation.service.AddItemFailure.AddItemFailureType
-
- All Implemented Interfaces:
Serializable
,Comparable<AddItemFailure.AddItemFailureType>
- Enclosing class:
- AddItemFailure
public static enum AddItemFailure.AddItemFailureType extends Enum<AddItemFailure.AddItemFailureType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PRODUCT_MISSING
The request's product was not found, therefore the request configuration could not be validatedVALIDATION
The request encountered a validation error.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AddItemFailure.AddItemFailureType
valueOf(String name)
Returns the enum constant of this type with the specified name.static AddItemFailure.AddItemFailureType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VALIDATION
public static final AddItemFailure.AddItemFailureType VALIDATION
The request encountered a validation error.
-
PRODUCT_MISSING
public static final AddItemFailure.AddItemFailureType PRODUCT_MISSING
The request's product was not found, therefore the request configuration could not be validated
-
-
Method Detail
-
values
public static AddItemFailure.AddItemFailureType[] 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 (AddItemFailure.AddItemFailureType c : AddItemFailure.AddItemFailureType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AddItemFailure.AddItemFailureType 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
-
-