Enum MetricColor
- java.lang.Object
-
- java.lang.Enum<MetricColor>
-
- org.hl7.fhir.r4.model.codesystems.MetricColor
-
- All Implemented Interfaces:
Serializable,Comparable<MetricColor>
public enum MetricColor extends Enum<MetricColor>
-
-
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 parsersREDColor 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 MetricColorfromCode(String codeString)StringgetDefinition()StringgetDisplay()StringgetSystem()StringtoCode()static MetricColorvalueOf(String name)Returns the enum constant of this type with the specified name.static MetricColor[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLACK
public static final MetricColor BLACK
Color for representation - black.
-
RED
public static final MetricColor RED
Color for representation - red.
-
GREEN
public static final MetricColor GREEN
Color for representation - green.
-
YELLOW
public static final MetricColor YELLOW
Color for representation - yellow.
-
BLUE
public static final MetricColor BLUE
Color for representation - blue.
-
MAGENTA
public static final MetricColor MAGENTA
Color for representation - magenta.
-
CYAN
public static final MetricColor CYAN
Color for representation - cyan.
-
WHITE
public static final MetricColor WHITE
Color for representation - white.
-
NULL
public static final MetricColor NULL
added to help the parsers
-
-
Method Detail
-
values
public static MetricColor[] 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 (MetricColor c : MetricColor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MetricColor 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 MetricColor fromCode(String codeString) throws org.hl7.fhir.exceptions.FHIRException
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getDefinition
public String getDefinition()
-
getDisplay
public String getDisplay()
-
-