Enum ElementType
- java.lang.Object
-
- java.lang.Enum<ElementType>
-
- io.openmanufacturing.sds.aspectmodel.urn.ElementType
-
- All Implemented Interfaces:
Serializable,Comparable<ElementType>
public enum ElementType extends Enum<ElementType>
Provides the element types defined for the Aspect Model URN. It is differentiated between root model elements, these are the element types defined in the BAMM, and model elements, these are elements which are defined in the scope of a root element. For example a Property defined in an Aspect, or a Property defined in an Entity.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASPECT_MODELASPECT_MODEL_ELEMENTCHARACTERISTICCHARACTERISTIC_MODEL_ELEMENTENTITYENTITY_MODEL_ELEMENTMETA_MODELNONEUNIT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetValue()static ElementTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ElementType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
META_MODEL
public static final ElementType META_MODEL
-
ASPECT_MODEL
public static final ElementType ASPECT_MODEL
-
ENTITY
public static final ElementType ENTITY
-
CHARACTERISTIC
public static final ElementType CHARACTERISTIC
-
UNIT
public static final ElementType UNIT
-
ASPECT_MODEL_ELEMENT
public static final ElementType ASPECT_MODEL_ELEMENT
-
ENTITY_MODEL_ELEMENT
public static final ElementType ENTITY_MODEL_ELEMENT
-
CHARACTERISTIC_MODEL_ELEMENT
public static final ElementType CHARACTERISTIC_MODEL_ELEMENT
-
NONE
public static final ElementType NONE
-
-
Method Detail
-
values
public static ElementType[] 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 (ElementType c : ElementType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ElementType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public String getValue()
-
-