Class DefaultStopAreaRepository

java.lang.Object
org.entur.netex.gtfs.export.stop.DefaultStopAreaRepository
All Implemented Interfaces:
StopAreaRepository

public class DefaultStopAreaRepository extends Object implements StopAreaRepository
A Stop area repository that loads data from a NeTEx dataset archive.
  • 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

      public void loadStopAreas(InputStream stopDataset)
    • getStopPlaceByQuayId

      public org.rutebanken.netex.model.StopPlace getStopPlaceByQuayId(String quayId)
      Description copied from interface: StopAreaRepository
      Return the stop place associated to a given quay.
      Specified by:
      getStopPlaceByQuayId in interface StopAreaRepository
      Parameters:
      quayId - the id of the quay
      Returns:
      the stop place that contains that quay.
    • getAllQuays

      public Collection<org.rutebanken.netex.model.Quay> getAllQuays()
      Description copied from interface: StopAreaRepository
      Return all quays in the repository.
      Specified by:
      getAllQuays in interface StopAreaRepository
      Returns:
      all quays in the repository.
    • getQuayById

      public org.rutebanken.netex.model.Quay getQuayById(String quayId)
      Description copied from interface: StopAreaRepository
      Return the Quay identified by its id.
      Specified by:
      getQuayById in interface StopAreaRepository
      Parameters:
      quayId - the quay id.
      Returns:
      the quay identified by this id.