Enum DefaultAttributeChoiceType
java.lang.Object
java.lang.Enum<DefaultAttributeChoiceType>
com.broadleafcommerce.catalog.domain.product.option.type.DefaultAttributeChoiceType
- All Implemented Interfaces:
Serializable
,Comparable<DefaultAttributeChoiceType>
A DefaultAttributeChoiceType defines what kind of information or allowed values a ProductOption represents. This can be a specific kind of data: Integer, decimal, text, color. Or it can be something more complex pertaining to how the information is displayed or selected: Text area, input, select.
This class defines several types supported by default.
- Author:
- Nathan Moore (nathanmoore)., Phillip Verheyden (phillipuniverse)
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultAttributeChoiceType
Returns the enum constant of this type with the specified name.static DefaultAttributeChoiceType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COLOR
-
SIZE
-
BOOLEAN
-
TEXT
-
DATE
-
TEXT_AREA
-
DECIMAL
-
INTEGER
-
SELECT
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-