public static enum Callback.Event extends Enum<Callback.Event>
ALL
is meta-action usable in
configurations meaning that the configuration entry applies to all actions (any action).
In callback configuration action names in lowercase and with _ replaced for - can be
used (e.g. "counter-increase" instead for COUNTER_INCREASE
.
Event codes are used for configuration purposes instead of enum literals.Enum Constant and Description |
---|
ALL
Meta-action designating all actions (or any action in rules).
|
COUNTER_DECREASE
Counter decreased.
|
COUNTER_INCREASE
Counter increased.
|
COUNTER_SET
Counter set to arbitrary value.
|
CREATED
Creation of a Simon.
|
DESTROYED
Removing of a Simon.
|
MANAGER_CLEAR
Clearing of the manager.
|
MESSAGE
Event producing arbitrary message.
|
STOPWATCH_ADD
Adding value to the stopwatch.
|
STOPWATCH_START
Start of the stopwatch.
|
STOPWATCH_STOP
Stop of the stopwatch.
|
WARNING
Warning related to the manager.
|
Modifier and Type | Method and Description |
---|---|
static Callback.Event |
forCode(String code)
Returns event for String code used in XML configuration.
|
static Callback.Event |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Callback.Event[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Callback.Event ALL
public static final Callback.Event STOPWATCH_START
public static final Callback.Event STOPWATCH_STOP
public static final Callback.Event STOPWATCH_ADD
public static final Callback.Event COUNTER_INCREASE
public static final Callback.Event COUNTER_DECREASE
public static final Callback.Event COUNTER_SET
public static final Callback.Event CREATED
public static final Callback.Event DESTROYED
public static final Callback.Event MANAGER_CLEAR
public static final Callback.Event MESSAGE
public static final Callback.Event WARNING
public static Callback.Event[] values()
for (Callback.Event c : Callback.Event.values()) System.out.println(c);
public static Callback.Event valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Callback.Event forCode(String code)
code
- String codeCopyright © 2019. All rights reserved.