Enum ProcessConstants.DeltaScope
- java.lang.Object
-
- java.lang.Enum<ProcessConstants.DeltaScope>
-
- de.aristaflow.adept2.model.globals.ProcessConstants.DeltaScope
-
- All Implemented Interfaces:
Serializable
,Comparable<ProcessConstants.DeltaScope>
- Enclosing class:
- ProcessConstants
public static enum ProcessConstants.DeltaScope extends Enum<ProcessConstants.DeltaScope>
The scope for querying entities of the delta layer. One can distinguished between new, deleted, changed or moved entities whereas not every scope is valid for every entity. For instance, edges can not be moved. Queries with invalid scopes may be ignored. Refer to the javadoc of the corresponding methods for the valid delta scopes.- See Also:
DeltaLayer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
static ProcessConstants.DeltaScope
valueOf(int code)
Returns the enum constant of this type with the specified name.static ProcessConstants.DeltaScope
valueOf(String name)
Returns the enum constant of this type with the specified name.static ProcessConstants.DeltaScope[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEW
public static final ProcessConstants.DeltaScope NEW
Entities that are added by the delta layer.
-
DELETED
public static final ProcessConstants.DeltaScope DELETED
Entities that are deleted by the delta layer.
-
CHANGED
public static final ProcessConstants.DeltaScope CHANGED
Entities that are changed by the delta layer.
-
MOVED
public static final ProcessConstants.DeltaScope MOVED
Entities (nodes) that are moved by the delta layer.
-
-
Method Detail
-
values
public static ProcessConstants.DeltaScope[] 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 (ProcessConstants.DeltaScope c : ProcessConstants.DeltaScope.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProcessConstants.DeltaScope 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
-
getCode
public int getCode()
-
valueOf
public static ProcessConstants.DeltaScope valueOf(int code)
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:
code
- 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
-
-