Enum Class Modality
- All Implemented Interfaces:
Serializable, Comparable<Modality>, Constable, org.eclipse.emf.common.util.Enumerator
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe 'MAY' literal object.The 'MUST' literal object.The 'UNSPECIFIED' literal object. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe 'MAY' literal value.static final intThe 'MUST' literal value.static final intThe 'UNSPECIFIED' literal value.A public read-only list of all the 'Modality' enumerators. -
Method Summary
Modifier and TypeMethodDescriptionstatic Modalityget(int value) Returns the 'Modality' literal with the specified integer value.static ModalityReturns the 'Modality' literal with the specified literal value.static ModalityReturns the 'Modality' literal with the specified name.getName()intgetValue()toString()Returns the literal value of the enumerator, which is its string representation.static ModalityReturns the enum constant of this class with the specified name.static Modality[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSPECIFIED
-
MUST
-
MAY
-
-
Field Details
-
UNSPECIFIED_VALUE
public static final int UNSPECIFIED_VALUEThe 'UNSPECIFIED' literal value.- See Also:
-
MUST_VALUE
public static final int MUST_VALUEThe 'MUST' literal value.- See Also:
-
MAY_VALUE
public static final int MAY_VALUEThe 'MAY' literal value.- See Also:
-
VALUES
-
-
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
-
get
-
getByName
-
get
Returns the 'Modality' literal with the specified integer value.- Parameters:
value- the integer value.- Returns:
- the matching enumerator or
null.
-
getValue
public int getValue()- Specified by:
getValuein interfaceorg.eclipse.emf.common.util.Enumerator
-
getName
-
getLiteral
- Specified by:
getLiteralin interfaceorg.eclipse.emf.common.util.Enumerator
-
toString
-