Enum Operation.Kind
- java.lang.Object
-
- java.lang.Enum<Operation.Kind>
-
- org.eclipse.m2m.qvt.oml.blackbox.java.Operation.Kind
-
- All Implemented Interfaces:
Serializable,Comparable<Operation.Kind>
- Enclosing class:
- Operation
public static enum Operation.Kind extends Enum<Operation.Kind>
Indicates thekindof the annotated operation with respect to semantics in the QVT Abstract Syntax meta-model.- See Also:
Operation
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONSTRUCTORThe operation is defined as contextualconstructor.HELPERThe operation is defined ashelper, an imperative operation with possible side-effect.MAPPINGThe operation is defined as operationalmapping.OPERATIONThe operation is defined as normal operation.QUERYThe operation is defined asquery, a side-effect free imperative operation.TRANSFORMATIONThe operation is defined as operationaltransformation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Operation.KindvalueOf(String name)Returns the enum constant of this type with the specified name.static Operation.Kind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HELPER
public static final Operation.Kind HELPER
The operation is defined ashelper, an imperative operation with possible side-effect.
-
QUERY
public static final Operation.Kind QUERY
The operation is defined asquery, a side-effect free imperative operation.
-
MAPPING
public static final Operation.Kind MAPPING
The operation is defined as operationalmapping.- Since:
- 3.4
-
CONSTRUCTOR
public static final Operation.Kind CONSTRUCTOR
The operation is defined as contextualconstructor.- Since:
- 3.4
-
TRANSFORMATION
public static final Operation.Kind TRANSFORMATION
The operation is defined as operationaltransformation.- Since:
- 3.4
-
OPERATION
public static final Operation.Kind OPERATION
The operation is defined as normal operation. If the associated operation is defined ascontextual, the Typedef class is used to represent it as additional operation in the owningModuleclass.
-
-
Method Detail
-
values
public static Operation.Kind[] 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.Kind c : Operation.Kind.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.Kind 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
-
-