Enum IvmlTypeKind
- java.lang.Object
-
- java.lang.Enum<IvmlTypeKind>
-
- de.iip_ecosphere.platform.configuration.ivml.IvmlTypeKind
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<IvmlTypeKind>
public enum IvmlTypeKind extends java.lang.Enum<IvmlTypeKind>
Defines the IVML type kind.- Author:
- Holger Eichelberger, SSE
-
-
Field Summary
Fields Modifier and Type Field Description private intid
-
Constructor Summary
Constructors Modifier Constructor Description privateIvmlTypeKind(int id)Creates a constant.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IvmlTypeKindasTypeKind(net.ssehub.easy.varModel.model.datatypes.IDatatype type)Determines the type kind oftype.intgetId()Returns the unique id.static IvmlTypeKindvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static IvmlTypeKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRIMITIVE
public static final IvmlTypeKind PRIMITIVE
-
ENUM
public static final IvmlTypeKind ENUM
-
CONTAINER
public static final IvmlTypeKind CONTAINER
-
CONSTRAINT
public static final IvmlTypeKind CONSTRAINT
-
DERIVED
public static final IvmlTypeKind DERIVED
-
COMPOUND
public static final IvmlTypeKind COMPOUND
-
-
Method Detail
-
values
public static IvmlTypeKind[] 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 (IvmlTypeKind c : IvmlTypeKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IvmlTypeKind 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
-
getId
public int getId()
Returns the unique id.- Returns:
- the id
-
asTypeKind
public static IvmlTypeKind asTypeKind(net.ssehub.easy.varModel.model.datatypes.IDatatype type)
Determines the type kind oftype.- Parameters:
type- the type- Returns:
- the type kind
-
-