Package org.goplanit.gtfs.enums
Enum GtfsObjectType
- java.lang.Object
-
- java.lang.Enum<GtfsObjectType>
-
- org.goplanit.gtfs.enums.GtfsObjectType
-
- All Implemented Interfaces:
Serializable
,Comparable<GtfsObjectType>
public enum GtfsObjectType extends Enum<GtfsObjectType>
The available supported object types and their corresponding class. the value represents the in memory class that is used to represent this GTFS entity.- Author:
- markr
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AGENCY
ATTRIBUTION
CALENDAR
CALENDAR_DATE
FARE_ATTRIBUTE
FARE_RULE
FEED_INFO
FREQUENCY
LEVEL
PATHWAY
ROUTE
SHAPE
STOP
STOP_TIME
TRANSFER
TRANSLATION
TRIP
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends GtfsObject>
value()
Get the value of the enumstatic GtfsObjectType
valueOf(String name)
Returns the enum constant of this type with the specified name.static GtfsObjectType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AGENCY
public static final GtfsObjectType AGENCY
-
ATTRIBUTION
public static final GtfsObjectType ATTRIBUTION
-
CALENDAR
public static final GtfsObjectType CALENDAR
-
CALENDAR_DATE
public static final GtfsObjectType CALENDAR_DATE
-
FARE_ATTRIBUTE
public static final GtfsObjectType FARE_ATTRIBUTE
-
FARE_RULE
public static final GtfsObjectType FARE_RULE
-
FEED_INFO
public static final GtfsObjectType FEED_INFO
-
FREQUENCY
public static final GtfsObjectType FREQUENCY
-
LEVEL
public static final GtfsObjectType LEVEL
-
PATHWAY
public static final GtfsObjectType PATHWAY
-
ROUTE
public static final GtfsObjectType ROUTE
-
SHAPE
public static final GtfsObjectType SHAPE
-
STOP
public static final GtfsObjectType STOP
-
STOP_TIME
public static final GtfsObjectType STOP_TIME
-
TRANSFER
public static final GtfsObjectType TRANSFER
-
TRANSLATION
public static final GtfsObjectType TRANSLATION
-
TRIP
public static final GtfsObjectType TRIP
-
-
Method Detail
-
values
public static GtfsObjectType[] 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 (GtfsObjectType c : GtfsObjectType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GtfsObjectType 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 Class<? extends GtfsObject> value()
Get the value of the enum- Returns:
- value of the enum
-
-