Package com.abstratt.kirra
Enum Operation.OperationKind
- java.lang.Object
-
- java.lang.Enum<Operation.OperationKind>
-
- com.abstratt.kirra.Operation.OperationKind
-
- All Implemented Interfaces:
Serializable
,Comparable<Operation.OperationKind>
- Enclosing class:
- Operation
public static enum Operation.OperationKind extends Enum<Operation.OperationKind>
An operation can of many kinds. SeeOperation.getKind()
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Action
An operation that performs a change on the target object and or system (for static actions).Constructor
An operation that creates an instance of its entity.Event
Events are not operations per se, but share quite a few properties with operations, hence modeled as such.Finder
A finder finds instances of entities according to some internal criteria.Retriever
A retriever produces data.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Operation.OperationKind
valueOf(String name)
Returns the enum constant of this type with the specified name.static Operation.OperationKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Action
public static final Operation.OperationKind Action
An operation that performs a change on the target object and or system (for static actions).
-
Event
public static final Operation.OperationKind Event
Events are not operations per se, but share quite a few properties with operations, hence modeled as such.
-
Finder
public static final Operation.OperationKind Finder
A finder finds instances of entities according to some internal criteria. Finders always return sets ofInstance
s.
-
Retriever
public static final Operation.OperationKind Retriever
A retriever produces data. The data may be backed by entity instances, but it can really be any arbitrary tuple-shaped data. Retrievers return sets ofTuple
s.
-
Constructor
public static final Operation.OperationKind Constructor
An operation that creates an instance of its entity.
-
-
Method Detail
-
values
public static Operation.OperationKind[] 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 (Operation.OperationKind c : Operation.OperationKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Operation.OperationKind 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
-
-