public enum VoucherExtensionPointEvent extends java.lang.Enum<VoucherExtensionPointEvent> implements ExtensionPointEvent
| Enum Constant and Description |
|---|
BUY
A voucher is being bought by an user
|
CANCEL
A generated voucher is being canceled
|
EXPIRE
A voucher is being expired
|
GENERATE
A voucher is being generated
|
REDEEM
A voucher is being redeemed
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTR_VOUCHER
Scripting attribute: the user voucher affected
|
| Modifier and Type | Method and Description |
|---|---|
ExtensionPointNature |
nature()
Returns the nature of this set of events
|
static VoucherExtensionPointEvent |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static VoucherExtensionPointEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfnamepublic static final VoucherExtensionPointEvent GENERATE
public static final VoucherExtensionPointEvent BUY
public static final VoucherExtensionPointEvent REDEEM
public static final VoucherExtensionPointEvent CANCEL
public static final VoucherExtensionPointEvent EXPIRE
public static final java.lang.String ATTR_VOUCHER
public static VoucherExtensionPointEvent[] values()
for (VoucherExtensionPointEvent c : VoucherExtensionPointEvent.values()) System.out.println(c);
public static VoucherExtensionPointEvent valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic ExtensionPointNature nature()
ExtensionPointEventnature in interface ExtensionPointEvent