Enum Class ProcessConstants.TemplateUsage
java.lang.Object
java.lang.Enum<ProcessConstants.TemplateUsage>
de.aristaflow.adept2.model.globals.ProcessConstants.TemplateUsage
- All Implemented Interfaces:
Serializable,Comparable<ProcessConstants.TemplateUsage>,java.lang.constant.Constable
- Enclosing class:
- ProcessConstants
The usage of a template distinguishes whether it may be used only as a
subprocess and if so whether it is copied and therefore physically
integrated in the surrounding template or it is referenced. The latter
recognises modifications/derivations of the template and allows a migration
of the corresponding subprocess-instances.
- Author:
- Ulrich Kreher
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe process template may only be used as a subprocess by incorporating the graph structure in the surrounding process template.The process template may be referenced by a node in another template.The process template can be used either as copied subprocess or as referenced subprocess.The process template may not be used as a subprocess. -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()valueOf(int code) Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.static ProcessConstants.TemplateUsage[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_SUBPROCESS
The process template may not be used as a subprocess. States valid for subprocess usage are ignored. -
AS_COPY
The process template may only be used as a subprocess by incorporating the graph structure in the surrounding process template. -
AS_REFERENCE
The process template may be referenced by a node in another template. Referencing a process template resembles referencing an activity template. -
COPY_OR_REFERENCE
The process template can be used either as copied subprocess or as referenced subprocess. The process modeller has to specify whether the semantics of copy or that of a reference is desired.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
public int getCode() -
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
code- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-