Module org.entur.netex.gtfs.export
Package org.entur.netex.gtfs.export.stop
Class DefaultStopAreaRepository
java.lang.Object
org.entur.netex.gtfs.export.stop.DefaultStopAreaRepository
- All Implemented Interfaces:
StopAreaRepository
A Stop area repository that loads data from a NeTEx dataset archive.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a default stop area repository.DefaultStopAreaRepository(NetexEntityFetcher<org.rutebanken.netex.model.Quay, String> quayFetcher, NetexEntityFetcher<org.rutebanken.netex.model.StopPlace, String> stopPlaceFetcher) Create a default stop area repository. -
Method Summary
Modifier and TypeMethodDescriptionCollection<org.rutebanken.netex.model.Quay> Return all quays in the repository.org.rutebanken.netex.model.QuaygetQuayById(String quayId) Return the Quay identified by its id.org.rutebanken.netex.model.StopPlacegetStopPlaceByQuayId(String quayId) Return the stop place associated to a given quay.voidloadStopAreas(InputStream stopDataset)
-
Constructor Details
-
DefaultStopAreaRepository
public DefaultStopAreaRepository()Create a default stop area repository. If a quay/stop place is missing in the repository, an exception is thrown. -
DefaultStopAreaRepository
public DefaultStopAreaRepository(NetexEntityFetcher<org.rutebanken.netex.model.Quay, String> quayFetcher, NetexEntityFetcher<org.rutebanken.netex.model.StopPlace, String> stopPlaceFetcher) Create a default stop area repository. If a quay/stop place is missing in the repository, a quayFetcher/stopPlaceFetcher attempts to retrieve it from an external resource.
-
-
Method Details
-
loadStopAreas
-
getStopPlaceByQuayId
Description copied from interface:StopAreaRepositoryReturn the stop place associated to a given quay.- Specified by:
getStopPlaceByQuayIdin interfaceStopAreaRepository- Parameters:
quayId- the id of the quay- Returns:
- the stop place that contains that quay.
-
getAllQuays
Description copied from interface:StopAreaRepositoryReturn all quays in the repository.- Specified by:
getAllQuaysin interfaceStopAreaRepository- Returns:
- all quays in the repository.
-
getQuayById
Description copied from interface:StopAreaRepositoryReturn the Quay identified by its id.- Specified by:
getQuayByIdin interfaceStopAreaRepository- Parameters:
quayId- the quay id.- Returns:
- the quay identified by this id.
-