Package org.goplanit.gtfs.enums
Enum GtfsFileType
- java.lang.Object
-
- java.lang.Enum<GtfsFileType>
-
- org.goplanit.gtfs.enums.GtfsFileType
-
- All Implemented Interfaces:
Serializable
,Comparable<GtfsFileType>
public enum GtfsFileType extends Enum<GtfsFileType>
Supported GTFS file types and their corresponding (default) file name in which entries are expected to be found- Author:
- markr
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AGENCIES
ATTRIBUTIONS
CALENDAR_DATES
CALENDARS
FARE_ATTRIBUTES
FARE_RULES
FEED_INFO
FREQUENCIES
LEVELS
PATHWAYS
ROUTES
SHAPES
STOP_TIMES
STOPS
TRANSFERS
TRANSLATIONS
TRIPS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
value()
Get the value of the enumstatic GtfsFileType
valueOf(String name)
Returns the enum constant of this type with the specified name.static GtfsFileType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AGENCIES
public static final GtfsFileType AGENCIES
-
ATTRIBUTIONS
public static final GtfsFileType ATTRIBUTIONS
-
CALENDARS
public static final GtfsFileType CALENDARS
-
CALENDAR_DATES
public static final GtfsFileType CALENDAR_DATES
-
FARE_ATTRIBUTES
public static final GtfsFileType FARE_ATTRIBUTES
-
FARE_RULES
public static final GtfsFileType FARE_RULES
-
FEED_INFO
public static final GtfsFileType FEED_INFO
-
FREQUENCIES
public static final GtfsFileType FREQUENCIES
-
LEVELS
public static final GtfsFileType LEVELS
-
PATHWAYS
public static final GtfsFileType PATHWAYS
-
ROUTES
public static final GtfsFileType ROUTES
-
STOP_TIMES
public static final GtfsFileType STOP_TIMES
-
STOPS
public static final GtfsFileType STOPS
-
TRANSFERS
public static final GtfsFileType TRANSFERS
-
TRANSLATIONS
public static final GtfsFileType TRANSLATIONS
-
TRIPS
public static final GtfsFileType TRIPS
-
SHAPES
public static final GtfsFileType SHAPES
-
-
Method Detail
-
values
public static GtfsFileType[] 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 (GtfsFileType c : GtfsFileType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GtfsFileType 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()
Get the value of the enum- Returns:
- value of the enum
-
-