Package com.nomagic.magicdraw.sysml.util
Enum SysMLProfile.ControlValueKindEnum
- java.lang.Object
-
- java.lang.Enum<SysMLProfile.ControlValueKindEnum>
-
- com.nomagic.magicdraw.sysml.util.SysMLProfile.ControlValueKindEnum
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SysMLProfile.ControlValueKindEnum>
- Enclosing class:
- SysMLProfile
public static enum SysMLProfile.ControlValueKindEnum extends java.lang.Enum<SysMLProfile.ControlValueKindEnum>
The ControlValue enumeration is a type for treating control values as data and for UML control pins. It can be used as the type of behavior and operation parameters, object nodes, and attributes, and so on. The possible runtime values are given as enumeration literals. Modelers can extend the enumeration with additional literals, such as suspend, resume, with their own semantics.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SysMLProfile.ControlValueKindEnum
from(java.lang.Object o)
java.lang.String
getText()
static SysMLProfile.ControlValueKindEnum
toEnum(EnumerationLiteral literal)
static EnumerationLiteral
toEnumerationLiteral(SysMLProfile profile, SysMLProfile.ControlValueKindEnum anEnum)
static SysMLProfile.ControlValueKindEnum
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SysMLProfile.ControlValueKindEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISABLE
public static final SysMLProfile.ControlValueKindEnum DISABLE
The disable literal means a termination of an executing behavior that can only be started again from the beginning (compare to suspend).
-
ENABLE
public static final SysMLProfile.ControlValueKindEnum ENABLE
The enable literal means to start a new execution of a behavior (compare to resume).
-
-
Method Detail
-
values
public static SysMLProfile.ControlValueKindEnum[] 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 (SysMLProfile.ControlValueKindEnum c : SysMLProfile.ControlValueKindEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SysMLProfile.ControlValueKindEnum valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getText
public java.lang.String getText()
-
from
@CheckForNull public static SysMLProfile.ControlValueKindEnum from(@CheckForNull java.lang.Object o)
-
toEnum
@CheckForNull public static SysMLProfile.ControlValueKindEnum toEnum(EnumerationLiteral literal)
-
toEnumerationLiteral
@CheckForNull public static EnumerationLiteral toEnumerationLiteral(SysMLProfile profile, SysMLProfile.ControlValueKindEnum anEnum)
-
-