Package org.hl7.fhir.r4.model
Enum DeviceMetric.DeviceMetricColor
- java.lang.Object
-
- java.lang.Enum<DeviceMetric.DeviceMetricColor>
-
- org.hl7.fhir.r4.model.DeviceMetric.DeviceMetricColor
-
- All Implemented Interfaces:
Serializable,Comparable<DeviceMetric.DeviceMetricColor>
- Enclosing class:
- DeviceMetric
public static enum DeviceMetric.DeviceMetricColor extends Enum<DeviceMetric.DeviceMetricColor>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLACKColor for representation - black.BLUEColor for representation - blue.CYANColor for representation - cyan.GREENColor for representation - green.MAGENTAColor for representation - magenta.NULLadded to help the parsers with the generic typesREDColor for representation - red.WHITEColor for representation - white.YELLOWColor for representation - yellow.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceMetric.DeviceMetricColorfromCode(String codeString)StringgetDefinition()StringgetDisplay()StringgetSystem()StringtoCode()static DeviceMetric.DeviceMetricColorvalueOf(String name)Returns the enum constant of this type with the specified name.static DeviceMetric.DeviceMetricColor[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLACK
public static final DeviceMetric.DeviceMetricColor BLACK
Color for representation - black.
-
RED
public static final DeviceMetric.DeviceMetricColor RED
Color for representation - red.
-
GREEN
public static final DeviceMetric.DeviceMetricColor GREEN
Color for representation - green.
-
YELLOW
public static final DeviceMetric.DeviceMetricColor YELLOW
Color for representation - yellow.
-
BLUE
public static final DeviceMetric.DeviceMetricColor BLUE
Color for representation - blue.
-
MAGENTA
public static final DeviceMetric.DeviceMetricColor MAGENTA
Color for representation - magenta.
-
CYAN
public static final DeviceMetric.DeviceMetricColor CYAN
Color for representation - cyan.
-
WHITE
public static final DeviceMetric.DeviceMetricColor WHITE
Color for representation - white.
-
NULL
public static final DeviceMetric.DeviceMetricColor NULL
added to help the parsers with the generic types
-
-
Method Detail
-
values
public static DeviceMetric.DeviceMetricColor[] 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 (DeviceMetric.DeviceMetricColor c : DeviceMetric.DeviceMetricColor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DeviceMetric.DeviceMetricColor 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
-
fromCode
public static DeviceMetric.DeviceMetricColor fromCode(String codeString) throws org.hl7.fhir.exceptions.FHIRException
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getDefinition
public String getDefinition()
-
getDisplay
public String getDisplay()
-
-