Package com.nomagic.uml2
Enum MagicDrawProfile.MetricTypeEnum
- java.lang.Object
-
- java.lang.Enum<MagicDrawProfile.MetricTypeEnum>
-
- com.nomagic.uml2.MagicDrawProfile.MetricTypeEnum
-
- All Implemented Interfaces:
ProfileImplementation.TextProvider
,java.io.Serializable
,java.lang.Comparable<MagicDrawProfile.MetricTypeEnum>
- Enclosing class:
- MagicDrawProfile
public static enum MagicDrawProfile.MetricTypeEnum extends java.lang.Enum<MagicDrawProfile.MetricTypeEnum> implements ProfileImplementation.TextProvider
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ELEMENT_QUANTITY
FAILED_ELEMENT_PERCENTAGE
FAILED_ELEMENT_QUANTITY
FAILURE_QUANTITY
PASSED_ELEMENT_PERCENTAGE
PASSED_ELEMENT_QUANTITY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MagicDrawProfile.MetricTypeEnum
from(java.lang.Object o)
java.lang.String
getText()
static MagicDrawProfile.MetricTypeEnum
toEnum(EnumerationLiteral literal)
static EnumerationLiteral
toEnumerationLiteral(MagicDrawProfile profile, MagicDrawProfile.MetricTypeEnum anEnum)
static MagicDrawProfile.MetricTypeEnum
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MagicDrawProfile.MetricTypeEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ELEMENT_QUANTITY
public static final MagicDrawProfile.MetricTypeEnum ELEMENT_QUANTITY
-
PASSED_ELEMENT_QUANTITY
public static final MagicDrawProfile.MetricTypeEnum PASSED_ELEMENT_QUANTITY
-
FAILED_ELEMENT_QUANTITY
public static final MagicDrawProfile.MetricTypeEnum FAILED_ELEMENT_QUANTITY
-
FAILURE_QUANTITY
public static final MagicDrawProfile.MetricTypeEnum FAILURE_QUANTITY
-
PASSED_ELEMENT_PERCENTAGE
public static final MagicDrawProfile.MetricTypeEnum PASSED_ELEMENT_PERCENTAGE
-
FAILED_ELEMENT_PERCENTAGE
public static final MagicDrawProfile.MetricTypeEnum FAILED_ELEMENT_PERCENTAGE
-
-
Method Detail
-
values
public static MagicDrawProfile.MetricTypeEnum[] 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 (MagicDrawProfile.MetricTypeEnum c : MagicDrawProfile.MetricTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MagicDrawProfile.MetricTypeEnum 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
-
getText
public java.lang.String getText()
- Specified by:
getText
in interfaceProfileImplementation.TextProvider
-
from
@CheckForNull public static MagicDrawProfile.MetricTypeEnum from(@CheckForNull java.lang.Object o)
-
toEnum
@CheckForNull public static MagicDrawProfile.MetricTypeEnum toEnum(EnumerationLiteral literal)
-
toEnumerationLiteral
@CheckForNull public static EnumerationLiteral toEnumerationLiteral(MagicDrawProfile profile, MagicDrawProfile.MetricTypeEnum anEnum)
-
-