Package org.palladiosimulator.metricspec
Enum CaptureType
- java.lang.Object
-
- java.lang.Enum<CaptureType>
-
- org.palladiosimulator.metricspec.CaptureType
-
- All Implemented Interfaces:
Serializable,Comparable<CaptureType>,Enumerator
public enum CaptureType extends Enum<CaptureType> implements Enumerator
A representation of the literals of the enumeration 'Capture Type', and utility methods for working with them. Type of the captured data. E.g. if the data describes identifiers, integer numbers or real numbers.- See Also:
MetricSpecPackage.getCaptureType()- Generated class or method.
- EMF model class or method.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IDENTIFIERThe 'Identifier' literal object.INTEGER_NUMBERThe 'Integer Number' literal object.REAL_NUMBERThe 'Real Number' literal object.
-
Field Summary
Fields Modifier and Type Field Description static intIDENTIFIER_VALUEThe 'Identifier' literal value.static intINTEGER_NUMBER_VALUEThe 'Integer Number' literal value.static intREAL_NUMBER_VALUEThe 'Real Number' literal value.static List<CaptureType>VALUESA public read-only list of all the 'Capture Type' enumerators.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CaptureTypeget(int value)Returns the 'Capture Type' literal with the specified integer value.static CaptureTypeget(String literal)Returns the 'Capture Type' literal with the specified literal value.static CaptureTypegetByName(String name)Returns the 'Capture Type' literal with the specified name.StringgetLiteral()StringgetName()intgetValue()StringtoString()Returns the literal value of the enumerator, which is its string representation.static CaptureTypevalueOf(String name)Returns the enum constant of this type with the specified name.static CaptureType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IDENTIFIER
public static final CaptureType IDENTIFIER
The 'Identifier' literal object. Identifiers are textual representations for different observable states. Examples are 'very bad', 'bad', 'okay', 'good', 'very good' in a questionaire, 'red', 'yellow', 'green' for a traffic light.- See Also:
IDENTIFIER_VALUE- Generated class or method.
- Ordered collection.
-
INTEGER_NUMBER
public static final CaptureType INTEGER_NUMBER
The 'Integer Number' literal object.Unlimited integer numbers can contain integers in the range of [-\infty, ..., -1, 0, 1, ... , +\infty].
- See Also:
INTEGER_NUMBER_VALUE- Generated class or method.
- Ordered collection.
-
REAL_NUMBER
public static final CaptureType REAL_NUMBER
The 'Real Number' literal object. Real numbers can contain any real number in the range of [-\infty, ..., 0, ..., +infty], e.g. -0.28796398424897234897.- See Also:
REAL_NUMBER_VALUE- Generated class or method.
- Ordered collection.
-
-
Field Detail
-
IDENTIFIER_VALUE
public static final int IDENTIFIER_VALUE
The 'Identifier' literal value. Identifiers are textual representations for different observable states. Examples are 'very bad', 'bad', 'okay', 'good', 'very good' in a questionaire, 'red', 'yellow', 'green' for a traffic light.- See Also:
IDENTIFIER, Constant Field Values- Generated class or method.
- EMF model class or method.
- name="Identifier"
- Ordered collection.
-
INTEGER_NUMBER_VALUE
public static final int INTEGER_NUMBER_VALUE
The 'Integer Number' literal value.Unlimited integer numbers can contain integers in the range of [-\infty, ..., -1, 0, 1, ... , +\infty].
- See Also:
INTEGER_NUMBER, Constant Field Values- Generated class or method.
- EMF model class or method.
- name="IntegerNumber"
- Ordered collection.
-
REAL_NUMBER_VALUE
public static final int REAL_NUMBER_VALUE
The 'Real Number' literal value. Real numbers can contain any real number in the range of [-\infty, ..., 0, ..., +infty], e.g. -0.28796398424897234897.- See Also:
REAL_NUMBER, Constant Field Values- Generated class or method.
- EMF model class or method.
- name="RealNumber"
- Ordered collection.
-
VALUES
public static final List<CaptureType> VALUES
A public read-only list of all the 'Capture Type' enumerators.- Generated class or method.
-
-
Method Detail
-
values
public static CaptureType[] 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 (CaptureType c : CaptureType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CaptureType 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 CaptureType get(String literal)
Returns the 'Capture Type' literal with the specified literal value.- Parameters:
literal- the literal.- Returns:
- the matching enumerator or
null. - Generated class or method.
-
getByName
public static CaptureType getByName(String name)
Returns the 'Capture Type' literal with the specified name.- Parameters:
name- the name.- Returns:
- the matching enumerator or
null. - Generated class or method.
-
get
public static CaptureType get(int value)
Returns the 'Capture 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.
-
toString
public String toString()
Returns the literal value of the enumerator, which is its string representation.- Overrides:
toStringin classEnum<CaptureType>- Generated class or method.
-
-