Package net.pricefx.domain
Enum Class ApprovalState
- All Implemented Interfaces:
Serializable
,Comparable<ApprovalState>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionPriceList is in this state if all its PriceListItems are approved.PriceGrid items can be auto-approvedPriceList is in this state if all its PriceListItems are not approved.PriceGrid is in this state if some of PriceGridItems are approved some are not approved. -
Method Summary
Modifier and TypeMethodDescriptionstatic ApprovalState
Returns the enum constant of this class with the specified name.static ApprovalState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_APPROVED
PriceList is in this state if all its PriceListItems are not approved. PriceListItem can be non approved also individually, so it can be also in this state. -
PARTIALLY_APPROVED
PriceGrid is in this state if some of PriceGridItems are approved some are not approved. Individual PriceGridItem cannot be in this state. -
APPROVED
PriceList is in this state if all its PriceListItems are approved. PriceListItem can be approved also individually, so it can be also in this state. -
AUTO_APPROVED
PriceGrid items can be auto-approved -
DENIED
-
-
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
-