Enum VoucherAction
- java.lang.Object
-
- java.lang.Enum<VoucherAction>
-
- org.cyclos.model.banking.vouchers.VoucherAction
-
- All Implemented Interfaces:
Serializable,Comparable<VoucherAction>,HasMessageKey
public enum VoucherAction extends Enum<VoucherAction> implements HasMessageKey
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASSIGNCANCELCHANGE_EXPIRATION_DATECHANGE_NOTIFICATION_SETTINGSCHANGE_PINRESEND_EMAILTOP_UPUNBLOCK_PIN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static VoucherActionvalueOf(String name)Returns the enum constant of this type with the specified name.static VoucherAction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CANCEL
public static final VoucherAction CANCEL
-
CHANGE_EXPIRATION_DATE
public static final VoucherAction CHANGE_EXPIRATION_DATE
-
RESEND_EMAIL
public static final VoucherAction RESEND_EMAIL
-
ASSIGN
public static final VoucherAction ASSIGN
-
TOP_UP
public static final VoucherAction TOP_UP
-
UNBLOCK_PIN
public static final VoucherAction UNBLOCK_PIN
-
CHANGE_NOTIFICATION_SETTINGS
public static final VoucherAction CHANGE_NOTIFICATION_SETTINGS
-
CHANGE_PIN
public static final VoucherAction CHANGE_PIN
-
-
Method Detail
-
values
public static VoucherAction[] 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 (VoucherAction c : VoucherAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VoucherAction 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
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
-