public enum ETrafficLightColor extends java.lang.Enum<ETrafficLightColor>
Assessment.getDominantColor()
).
The mapping to actual colors is defined in
AssessmentUtils.getColor(ETrafficLightColor)
, so typically this
method should be adjusted when a new constant is introduced here.Enum Constant and Description |
---|
BASELINE
Baseline indicates a baseline entry, i.e.
|
GREEN
Green signals the absence of errors or correctness.
|
ORANGE
|
RED
Red signals errors or incompleteness.
|
UNKNOWN
This is used if no information is available.
|
YELLOW
Yellow signals warning or lack of control.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDisplayText() |
static ETrafficLightColor |
getDominantColor(ETrafficLightColor color1,
ETrafficLightColor color2)
Returns the more dominant color, which is the enum literal with smaller index
(as they are sorted by dominance).
|
java.lang.String |
getHexValue() |
java.lang.String |
getShortDisplayText() |
static java.util.List<ETrafficLightColor> |
getTrafficLightColors()
Returns the traffic light colors red, yellow and green in this particular
order.
|
static ETrafficLightColor |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ETrafficLightColor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ETrafficLightColor RED
public static final ETrafficLightColor ORANGE
public static final ETrafficLightColor YELLOW
public static final ETrafficLightColor GREEN
public static final ETrafficLightColor BASELINE
public static final ETrafficLightColor UNKNOWN
public static ETrafficLightColor[] values()
for (ETrafficLightColor c : ETrafficLightColor.values()) System.out.println(c);
public static ETrafficLightColor valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getDisplayText()
displayText
public java.lang.String getShortDisplayText()
shortDisplayText
public java.lang.String getHexValue()
hexValue
public static ETrafficLightColor getDominantColor(ETrafficLightColor color1, ETrafficLightColor color2)
public static java.util.List<ETrafficLightColor> getTrafficLightColors()