Module org.entur.netex.gtfs.export
Class DefaultGtfsRepository
java.lang.Object
org.entur.netex.gtfs.export.repository.DefaultGtfsRepository
- All Implemented Interfaces:
GtfsDatasetRepository
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.onebusaway.gtfs.model.AgencygetAgencyById(String agencyId) Return a GTFS agency by id.org.onebusaway.gtfs.model.Agencyorg.onebusaway.gtfs.model.StopgetStopById(String stopId) Return a GTFS stop by id.org.onebusaway.gtfs.model.TripgetTripById(String tripId) Return a GTFS trip by id.voidsaveEntity(Object entity) Add an entity to the in-memory GTFS object model.Generate a GTFS archive from the GTFS object model and return an input stream pointing to it.
-
Constructor Details
-
DefaultGtfsRepository
public DefaultGtfsRepository()
-
-
Method Details
-
getAgencyById
Description copied from interface:GtfsDatasetRepositoryReturn a GTFS agency by id.- Specified by:
getAgencyByIdin interfaceGtfsDatasetRepository- Parameters:
agencyId- the agency id- Returns:
- the GTFS agency
-
getTripById
Description copied from interface:GtfsDatasetRepositoryReturn a GTFS trip by id.- Specified by:
getTripByIdin interfaceGtfsDatasetRepository- Parameters:
tripId- the trip id- Returns:
- the GTFS trip
-
getStopById
Description copied from interface:GtfsDatasetRepositoryReturn a GTFS stop by id.- Specified by:
getStopByIdin interfaceGtfsDatasetRepository- Parameters:
stopId- the stop id- Returns:
- the GTFS stop
-
saveEntity
Description copied from interface:GtfsDatasetRepositoryAdd an entity to the in-memory GTFS object model.- Specified by:
saveEntityin interfaceGtfsDatasetRepository- Parameters:
entity- the GTFS entity to be saved.
-
writeGtfs
Description copied from interface:GtfsDatasetRepositoryGenerate a GTFS archive from the GTFS object model and return an input stream pointing to it.- Specified by:
writeGtfsin interfaceGtfsDatasetRepository- Returns:
- the GTFS archive
-
getDefaultAgency
public org.onebusaway.gtfs.model.Agency getDefaultAgency()- Specified by:
getDefaultAgencyin interfaceGtfsDatasetRepository
-