Enum Class IvmlTypeKind
- All Implemented Interfaces:
Serializable,Comparable<IvmlTypeKind>,Constable
Defines the IVML type kind.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IvmlTypeKindasTypeKind(net.ssehub.easy.varModel.model.datatypes.IDatatype type) Determines the type kind oftype.intgetId()Returns the unique id.static IvmlTypeKindReturns the enum constant of this class with the specified name.static IvmlTypeKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PRIMITIVE
-
ENUM
-
CONTAINER
-
CONSTRAINT
-
DERIVED
-
COMPOUND
-
-
Field Details
-
id
private int id
-
-
Constructor Details
-
IvmlTypeKind
private IvmlTypeKind(int id) Creates a constant. We do not rely on ordinals if something needs to be added here- Parameters:
id- the unique id
-
-
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
-
getId
public int getId()Returns the unique id.- Returns:
- the id
-
asTypeKind
Determines the type kind oftype.- Parameters:
type- the type- Returns:
- the type kind
-