public enum EventCode extends Enum<EventCode>
Created to model the CDA Event codes for time.
AC before meal (from lat. ante cibus) ACM before breakfast (from lat. ante cibus matutinus) ACD before lunch (from lat. ante cibus diurnus) ACV before dinner (from lat. ante cibus vespertinus) HS hour of sleep IC between meals (from lat. inter cibus) ICM between breakfast and lunch ICD between lunch and dinner ICV between dinner and the hour of sleep PC after meals (from lat. post cibus) PCM after breakfast (from lat. post cibus matutinus) PCD after lunch (from lat. post cibus diurnus) PCV after dinner (from lat. post cibus vespertinus)
| Enum Constant and Description |
|---|
AFTER_BREAKFAST |
AFTER_DINNER |
AFTER_LUNCH |
AFTER_MEALS |
BEFORE_BREAKFST |
BEFORE_DINNER |
BEFORE_LUNCH |
BEFORE_MEAL |
BETWEEN_BREAKFAST_AND_LUNCH |
BETWEEN_DINNER_AND_HOUR_OF_SLEEP |
BETWEEN_LUNCH_AND_DINNER |
BETWEEN_MEAL |
HOUR_OF_SLEEP |
| Modifier and Type | Method and Description |
|---|---|
String |
getCode() |
static EventCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EventCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EventCode BEFORE_MEAL
public static final EventCode BEFORE_BREAKFST
public static final EventCode BEFORE_LUNCH
public static final EventCode BEFORE_DINNER
public static final EventCode HOUR_OF_SLEEP
public static final EventCode BETWEEN_MEAL
public static final EventCode BETWEEN_BREAKFAST_AND_LUNCH
public static final EventCode BETWEEN_LUNCH_AND_DINNER
public static final EventCode BETWEEN_DINNER_AND_HOUR_OF_SLEEP
public static final EventCode AFTER_MEALS
public static final EventCode AFTER_BREAKFAST
public static final EventCode AFTER_LUNCH
public static final EventCode AFTER_DINNER
public static EventCode[] values()
for (EventCode c : EventCode.values()) System.out.println(c);
public static EventCode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getCode()
Copyright © 2021. All rights reserved.