Enum EventActionCode
- java.lang.Object
-
- java.lang.Enum<EventActionCode>
-
- org.openehealth.ipf.commons.audit.codes.EventActionCode
-
- All Implemented Interfaces:
Serializable
,Comparable<EventActionCode>
,EnumeratedValueSet<String>
public enum EventActionCode extends Enum<EventActionCode> implements EnumeratedValueSet<String>
Event Action codes as originally specified by https://tools.ietf.org/html/rfc3881#section-5.1 and now maintained in http://dicom.nema.org/medical/dicom/current/output/html/part15.html#sect_A.5.1.2 This value set is a literal part of the audit schema, i.e. no other codes may be used.- Since:
- 3.5
- Author:
- Christian Ohr
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EventActionCode
enumForCode(String code)
String
getValue()
static EventActionCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static EventActionCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.openehealth.ipf.commons.audit.types.EnumeratedValueSet
matches
-
-
-
-
Enum Constant Detail
-
Create
public static final EventActionCode Create
-
Read
public static final EventActionCode Read
-
Update
public static final EventActionCode Update
-
Delete
public static final EventActionCode Delete
-
Execute
public static final EventActionCode Execute
-
-
Method Detail
-
values
public static EventActionCode[] 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 (EventActionCode c : EventActionCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EventActionCode 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
-
enumForCode
public static EventActionCode enumForCode(String code)
-
getValue
public String getValue()
- Specified by:
getValue
in interfaceEnumeratedValueSet<String>
-
-