Package org.goplanit.gtfs.entity
Class GtfsRoute
- java.lang.Object
-
- org.goplanit.gtfs.entity.GtfsObject
-
- org.goplanit.gtfs.entity.GtfsRoute
-
public class GtfsRoute extends GtfsObject
In memory representation of a GTFS entry in routes.txt- Author:
- markr
-
-
Field Summary
Fields Modifier and Type Field Description static EnumSet<GtfsKeyType>
SUPPORTED_KEYS
Supported keys for a GTFS route instance
-
Constructor Summary
Constructors Constructor Description GtfsRoute()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLongName()
String
getRouteDescription()
String
getRouteId()
Get the route idRouteType
getRouteType()
String
getRouteTypeRaw()
String
getShortName()
EnumSet<GtfsKeyType>
getSupportedKeys()
All supported keys for this GTFS objectboolean
hasLongName()
boolean
hasRouteDescription()
boolean
hasShortName()
boolean
hasValidName()
Verify if either long or short name is availableString
toString()
String of all key value pairs of this GTFS entity-
Methods inherited from class org.goplanit.gtfs.entity.GtfsObject
appendKeyValues, containsKey, get, put
-
-
-
-
Field Detail
-
SUPPORTED_KEYS
public static final EnumSet<GtfsKeyType> SUPPORTED_KEYS
Supported keys for a GTFS route instance
-
-
Method Detail
-
getSupportedKeys
public EnumSet<GtfsKeyType> getSupportedKeys()
All supported keys for this GTFS object- Specified by:
getSupportedKeys
in classGtfsObject
- Returns:
- supported keys
-
getRouteId
public String getRouteId()
Get the route id- Returns:
- route id
-
getRouteTypeRaw
public String getRouteTypeRaw()
-
getRouteType
public RouteType getRouteType()
-
getShortName
public String getShortName()
-
getLongName
public String getLongName()
-
getRouteDescription
public String getRouteDescription()
-
toString
public String toString()
String of all key value pairs of this GTFS entity
-
hasShortName
public boolean hasShortName()
-
hasLongName
public boolean hasLongName()
-
hasRouteDescription
public boolean hasRouteDescription()
-
hasValidName
public boolean hasValidName()
Verify if either long or short name is available- Returns:
- true when valid, false otherwise
-
-