Package net.pricefx.domain
Enum ApprovalState
- Object
-
- Enum<ApprovalState>
-
- ApprovalState
-
- All Implemented Interfaces:
Serializable
,Comparable<ApprovalState>
public enum ApprovalState extends Enum<ApprovalState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPROVED
PriceList is in this state if all its PriceListItems are approved.AUTO_APPROVED
PriceGrid items can be auto-approvedDENIED
NOT_APPROVED
PriceList is in this state if all its PriceListItems are not approved.PARTIALLY_APPROVED
PriceGrid is in this state if some of PriceGridItems are approved some are not approved.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ApprovalState
valueOf(String name)
Returns the enum constant of this type with the specified name.static ApprovalState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_APPROVED
public static final ApprovalState 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
public static final ApprovalState 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
public static final ApprovalState 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
public static final ApprovalState AUTO_APPROVED
PriceGrid items can be auto-approved
-
DENIED
public static final ApprovalState DENIED
-
-
Method Detail
-
values
public static ApprovalState[] 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 (ApprovalState c : ApprovalState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ApprovalState 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
-
-