Enum ServiceCode
- java.lang.Object
-
- java.lang.Enum<ServiceCode>
-
- org.onebusaway.transit_data_federation.bundle.tasks.stif.model.ServiceCode
-
- All Implemented Interfaces:
Serializable,Comparable<ServiceCode>
public enum ServiceCode extends Enum<ServiceCode>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLetterCode()static ServiceCodegetServiceCodeForId(String id)static ServiceCodegetServiceCodeForMTAHastusGTFS(String id)booleanisHoliday()static ServiceCodevalueOf(String name)Returns the enum constant of this type with the specified name.static ServiceCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WEEKDAY_SCHOOL_OPEN
public static final ServiceCode WEEKDAY_SCHOOL_OPEN
-
WEEKDAY_SCHOOL_CLOSED
public static final ServiceCode WEEKDAY_SCHOOL_CLOSED
-
SATURDAY
public static final ServiceCode SATURDAY
-
SUNDAY
public static final ServiceCode SUNDAY
-
MLK
public static final ServiceCode MLK
-
PRESIDENTS_DAY
public static final ServiceCode PRESIDENTS_DAY
-
MEMORIAL_DAY
public static final ServiceCode MEMORIAL_DAY
-
GOOD_FRIDAY
public static final ServiceCode GOOD_FRIDAY
-
LABOR_DAY
public static final ServiceCode LABOR_DAY
-
JULY_FOURTH
public static final ServiceCode JULY_FOURTH
-
COLUMBUS_DAY
public static final ServiceCode COLUMBUS_DAY
-
THANKSGIVING
public static final ServiceCode THANKSGIVING
-
DAY_AFTER_THANKSGIVING
public static final ServiceCode DAY_AFTER_THANKSGIVING
-
CHRISTMAS_EVE
public static final ServiceCode CHRISTMAS_EVE
-
CHRISTMAS_DAY
public static final ServiceCode CHRISTMAS_DAY
-
CHRISTMAS_DAY_OBSERVED
public static final ServiceCode CHRISTMAS_DAY_OBSERVED
-
CHRISTMAS_WEEK
public static final ServiceCode CHRISTMAS_WEEK
-
NEW_YEARS_EVE
public static final ServiceCode NEW_YEARS_EVE
-
NEW_YEARS_DAY
public static final ServiceCode NEW_YEARS_DAY
-
NEW_YEARS_DAY_OBSERVED
public static final ServiceCode NEW_YEARS_DAY_OBSERVED
-
-
Method Detail
-
values
public static ServiceCode[] 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 (ServiceCode c : ServiceCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServiceCode 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
-
getServiceCodeForId
public static ServiceCode getServiceCodeForId(String id)
-
getServiceCodeForMTAHastusGTFS
public static ServiceCode getServiceCodeForMTAHastusGTFS(String id)
-
getLetterCode
public String getLetterCode()
-
isHoliday
public boolean isHoliday()
-
-