Package org.goplanit.gtfs.entity
Class GtfsObject
- java.lang.Object
-
- org.goplanit.gtfs.entity.GtfsObject
-
- Direct Known Subclasses:
GtfsAgency
,GtfsAttribution
,GtfsCalendar
,GtfsCalendarDate
,GtfsFareAttribute
,GtfsFareRule
,GtfsFeedInfo
,GtfsFrequency
,GtfsLevel
,GtfsPathway
,GtfsRoute
,GtfsShape
,GtfsStop
,GtfsStopTime
,GtfsTransfer
,GtfsTranslation
,GtfsTrip
public abstract class GtfsObject extends Object
Base class for any GTFS memory model object with key value pairs for the data- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description GtfsObject()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
appendKeyValues(StringBuilder sb)
Append values to provided string builderboolean
containsKey(GtfsKeyType key)
String
get(GtfsKeyType key)
abstract EnumSet<GtfsKeyType>
getSupportedKeys()
All supported keys for this GTFS objectString
put(GtfsKeyType key, String value)
-
-
-
Method Detail
-
appendKeyValues
protected void appendKeyValues(StringBuilder sb)
Append values to provided string builder- Parameters:
sb
- to append to
-
get
public String get(GtfsKeyType key)
-
put
public String put(GtfsKeyType key, String value)
-
containsKey
public boolean containsKey(GtfsKeyType key)
-
getSupportedKeys
public abstract EnumSet<GtfsKeyType> getSupportedKeys()
All supported keys for this GTFS object- Returns:
- supported keys
-
-