Package org.palladiosimulator.metricspec
Enum DataType
- java.lang.Object
-
- java.lang.Enum<DataType>
-
- org.palladiosimulator.metricspec.DataType
-
- All Implemented Interfaces:
Serializable,Comparable<DataType>,Enumerator
public enum DataType extends Enum<DataType> implements Enumerator
A representation of the literals of the enumeration 'Data Type', and utility methods for working with them. Kind of a data type. E.g. if it is quantitative or qualitative data.- See Also:
MetricSpecPackage.getDataType()- Generated class or method.
- EMF model class or method.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description QUALITATIVEThe 'Qualitative' literal object.QUANTITATIVEThe 'Quantitative' literal object.
-
Field Summary
Fields Modifier and Type Field Description static intQUALITATIVE_VALUEThe 'Qualitative' literal value.static intQUANTITATIVE_VALUEThe 'Quantitative' literal value.static List<DataType>VALUESA public read-only list of all the 'Data Type' enumerators.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DataTypeget(int value)Returns the 'Data Type' literal with the specified integer value.static DataTypeget(String literal)Returns the 'Data Type' literal with the specified literal value.static DataTypegetByName(String name)Returns the 'Data Type' literal with the specified name.StringgetLiteral()StringgetName()intgetValue()StringtoString()Returns the literal value of the enumerator, which is its string representation.static DataTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DataType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
QUANTITATIVE
public static final DataType QUANTITATIVE
The 'Quantitative' literal object.- See Also:
QUANTITATIVE_VALUE- Generated class or method.
- Ordered collection.
-
QUALITATIVE
public static final DataType QUALITATIVE
The 'Qualitative' literal object.- See Also:
QUALITATIVE_VALUE- Generated class or method.
- Ordered collection.
-
-
Field Detail
-
QUANTITATIVE_VALUE
public static final int QUANTITATIVE_VALUE
The 'Quantitative' literal value.- See Also:
QUANTITATIVE, Constant Field Values- Generated class or method.
- EMF model class or method.
- name="Quantitative"
- Ordered collection.
-
QUALITATIVE_VALUE
public static final int QUALITATIVE_VALUE
The 'Qualitative' literal value.- See Also:
QUALITATIVE, Constant Field Values- Generated class or method.
- EMF model class or method.
- name="Qualitative"
- Ordered collection.
-
-
Method Detail
-
values
public static DataType[] 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 (DataType c : DataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataType 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
-
get
public static DataType get(String literal)
Returns the 'Data Type' literal with the specified literal value.- Parameters:
literal- the literal.- Returns:
- the matching enumerator or
null. - Generated class or method.
-
getByName
public static DataType getByName(String name)
Returns the 'Data Type' literal with the specified name.- Parameters:
name- the name.- Returns:
- the matching enumerator or
null. - Generated class or method.
-
get
public static DataType get(int value)
Returns the 'Data Type' literal with the specified integer value.- Parameters:
value- the integer value.- Returns:
- the matching enumerator or
null. - Generated class or method.
-
getValue
public int getValue()
- Specified by:
getValuein interfaceEnumerator- Generated class or method.
-
getName
public String getName()
- Specified by:
getNamein interfaceEnumerator- Generated class or method.
-
getLiteral
public String getLiteral()
- Specified by:
getLiteralin interfaceEnumerator- Generated class or method.
-
-