Enum PeriodByPhaseOfDayEnum
- java.lang.Object
-
- java.lang.Enum<PeriodByPhaseOfDayEnum>
-
- eu.datex2.siri14.schema._1_0._1_0.PeriodByPhaseOfDayEnum
-
- All Implemented Interfaces:
Serializable,Comparable<PeriodByPhaseOfDayEnum>
public enum PeriodByPhaseOfDayEnum extends Enum<PeriodByPhaseOfDayEnum>
Java class for PeriodByPhaseOfDayEnum.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="PeriodByPhaseOfDayEnum"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="duringDarknessHours"/> <enumeration value="duringDayLightHours"/> <enumeration value="duringEveningBeforeSunset"/> <enumeration value="duringEveningRushHour"/> <enumeration value="duringMorningBeforeSunrise"/> <enumeration value="duringMorningRushHour"/> <enumeration value="fromMidnightToSunrise"/> <enumeration value="fromSunsetToMidnight"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DURING_DARKNESS_HOURSPeriod during hours of darkness from sunset to sunrise.DURING_DAY_LIGHT_HOURSPeriod during hours of daylight from sunrise to sunset.DURING_EVENING_BEFORE_SUNSETPeriod from 5 pm until sunset.DURING_EVENING_RUSH_HOURPeriod of the normally recognised evening local rush hour.DURING_MORNING_BEFORE_SUNRISEPeriod from 5 am until sunrise.DURING_MORNING_RUSH_HOURPeriod of the normally recognised morning local rush hour.FROM_MIDNIGHT_TO_SUNRISEPeriod from midnight until sunrise.FROM_SUNSET_TO_MIDNIGHTPeriod from sunset until midnight.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PeriodByPhaseOfDayEnumfromValue(String v)Stringvalue()static PeriodByPhaseOfDayEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static PeriodByPhaseOfDayEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DURING_DARKNESS_HOURS
public static final PeriodByPhaseOfDayEnum DURING_DARKNESS_HOURS
Period during hours of darkness from sunset to sunrise.
-
DURING_DAY_LIGHT_HOURS
public static final PeriodByPhaseOfDayEnum DURING_DAY_LIGHT_HOURS
Period during hours of daylight from sunrise to sunset.
-
DURING_EVENING_BEFORE_SUNSET
public static final PeriodByPhaseOfDayEnum DURING_EVENING_BEFORE_SUNSET
Period from 5 pm until sunset.
-
DURING_EVENING_RUSH_HOUR
public static final PeriodByPhaseOfDayEnum DURING_EVENING_RUSH_HOUR
Period of the normally recognised evening local rush hour.
-
DURING_MORNING_BEFORE_SUNRISE
public static final PeriodByPhaseOfDayEnum DURING_MORNING_BEFORE_SUNRISE
Period from 5 am until sunrise.
-
DURING_MORNING_RUSH_HOUR
public static final PeriodByPhaseOfDayEnum DURING_MORNING_RUSH_HOUR
Period of the normally recognised morning local rush hour.
-
FROM_MIDNIGHT_TO_SUNRISE
public static final PeriodByPhaseOfDayEnum FROM_MIDNIGHT_TO_SUNRISE
Period from midnight until sunrise.
-
FROM_SUNSET_TO_MIDNIGHT
public static final PeriodByPhaseOfDayEnum FROM_SUNSET_TO_MIDNIGHT
Period from sunset until midnight.
-
-
Method Detail
-
values
public static PeriodByPhaseOfDayEnum[] 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 (PeriodByPhaseOfDayEnum c : PeriodByPhaseOfDayEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PeriodByPhaseOfDayEnum 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()
-
fromValue
public static PeriodByPhaseOfDayEnum fromValue(String v)
-
-