Class RoutedServicesIdMapper


  • public class RoutedServicesIdMapper
    extends PlanitComponentIdMapper
    All routed services id mappers in a convenience class
    • Constructor Detail

      • RoutedServicesIdMapper

        public RoutedServicesIdMapper​(IdMapperType type)
        Constructor
        Parameters:
        type - to use
    • Method Detail

      • getRoutedServiceRefIdMapper

        public Function<RoutedService,​String> getRoutedServiceRefIdMapper()
        Collect how routed service leg ids are to be mapped to the XML ids when persisting
        Returns:
        mapping from routed service to string (XML id to persist)
      • getRoutedTripRefIdMapper

        public Function<RoutedTrip,​String> getRoutedTripRefIdMapper()
        Collect how routed trip ids are to be mapped to the XML ids when persisting
        Returns:
        mapping from routed trip to string (XML id to persist)
      • getRoutedTripDepartureRefIdMapper

        public Function<RoutedTripDeparture,​String> getRoutedTripDepartureRefIdMapper()
        Collect how RoutedTripDeparture ids are to be mapped to the XML ids when persisting
        Returns:
        mapping from RoutedTripDeparture to string (XML id to persist)
      • getRoutedServiceLayerIdMapper

        public Function<RoutedServicesLayer,​String> getRoutedServiceLayerIdMapper()
        Collect how RoutedServicesLayer ids are to be mapped to the XML ids when persisting
        Returns:
        mapping from RoutedServicesLayer to string (XML id to persist)