Package com.ibm.fhir.model.type.code
Enum DeviceMetricColor.ValueSet
- java.lang.Object
-
- java.lang.Enum<DeviceMetricColor.ValueSet>
-
- com.ibm.fhir.model.type.code.DeviceMetricColor.ValueSet
-
- All Implemented Interfaces:
Serializable,Comparable<DeviceMetricColor.ValueSet>
- Enclosing class:
- DeviceMetricColor
public static enum DeviceMetricColor.ValueSet extends Enum<DeviceMetricColor.ValueSet>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceMetricColor.ValueSetfrom(String value)Factory method for creating DeviceMetricColor.ValueSet values from a passed string value.Stringvalue()static DeviceMetricColor.ValueSetvalueOf(String name)Returns the enum constant of this type with the specified name.static DeviceMetricColor.ValueSet[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLACK
public static final DeviceMetricColor.ValueSet BLACK
Color BlackColor for representation - black.
-
RED
public static final DeviceMetricColor.ValueSet RED
Color RedColor for representation - red.
-
GREEN
public static final DeviceMetricColor.ValueSet GREEN
Color GreenColor for representation - green.
-
YELLOW
public static final DeviceMetricColor.ValueSet YELLOW
Color YellowColor for representation - yellow.
-
BLUE
public static final DeviceMetricColor.ValueSet BLUE
Color BlueColor for representation - blue.
-
MAGENTA
public static final DeviceMetricColor.ValueSet MAGENTA
Color MagentaColor for representation - magenta.
-
CYAN
public static final DeviceMetricColor.ValueSet CYAN
Color CyanColor for representation - cyan.
-
WHITE
public static final DeviceMetricColor.ValueSet WHITE
Color WhiteColor for representation - white.
-
-
Method Detail
-
values
public static DeviceMetricColor.ValueSet[] 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 (DeviceMetricColor.ValueSet c : DeviceMetricColor.ValueSet.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DeviceMetricColor.ValueSet 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
-
value
public String value()
- Returns:
- The java.lang.String value of the code represented by this enum
-
from
public static DeviceMetricColor.ValueSet from(String value)
Factory method for creating DeviceMetricColor.ValueSet values from a passed string value.- Parameters:
value- A string that matches one of the allowed code values- Throws:
IllegalArgumentException- If the passed string cannot be parsed into an allowed code value
-
-