org.fosstrak.epcis.repository.model
Enum Action
java.lang.Object
java.lang.Enum<Action>
org.fosstrak.epcis.repository.model.Action
- All Implemented Interfaces:
- Serializable, Comparable<Action>
public enum Action
- extends Enum<Action>
Action types for events, per section 7.2.2 of the spec.
- Author:
- Sean Wellington
|
Method Summary |
static Action |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
ADD
public static final Action ADD
DELETE
public static final Action DELETE
OBSERVE
public static final Action OBSERVE
values
public static Action[] 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 (Action c : Action.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Action 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 name
NullPointerException - if the argument is null
Copyright © 2010. All Rights Reserved.