Package com.mayam.wf.config.shared
Enum Class TaskList.AssetConstraint
- All Implemented Interfaces:
Serializable
,Comparable<TaskList.AssetConstraint>
,Constable
- Enclosing class:
TaskList
For each task belonging to a task list,
AssetConstraint
describes
a constraint with regards to an asset attribute such as Attribute.ASSET_ID.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAn asset is requires; it may not be shared with any other task in the list - active or closed.An asset is required; sharing between tasks is allowed.An asset is allowed, but not required.An asset is required; it may not be shared with any active task in the list. -
Method Summary
Modifier and TypeMethodDescriptionstatic TaskList.AssetConstraint
Returns the enum constant of this class with the specified name.static TaskList.AssetConstraint[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNIQUE
An asset is required; it may not be shared with any active task in the list. -
FULLY_UNIQUE
An asset is requires; it may not be shared with any other task in the list - active or closed. -
NON_UNIQUE
An asset is required; sharing between tasks is allowed. -
OPTIONAL
An asset is allowed, but not required. This is the default if no explicit constraint is specified.
-
-
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
-