Package org.goplanit.converter.idmapping
Class RoutedServicesIdMapper
- java.lang.Object
-
- org.goplanit.converter.idmapping.PlanitComponentIdMapper
-
- org.goplanit.converter.idmapping.RoutedServicesIdMapper
-
public class RoutedServicesIdMapper extends PlanitComponentIdMapper
All routed services id mappers in a convenience class
-
-
Constructor Summary
Constructors Constructor Description RoutedServicesIdMapper(IdMapperType type)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Function<RoutedServicesLayer,String>
getRoutedServiceLayerIdMapper()
Collect how RoutedServicesLayer ids are to be mapped to the XML ids when persistingFunction<RoutedService,String>
getRoutedServiceRefIdMapper()
Collect how routed service leg ids are to be mapped to the XML ids when persistingFunction<RoutedTripDeparture,String>
getRoutedTripDepartureRefIdMapper()
Collect how RoutedTripDeparture ids are to be mapped to the XML ids when persistingFunction<RoutedTrip,String>
getRoutedTripRefIdMapper()
Collect how routed trip ids are to be mapped to the XML ids when persisting-
Methods inherited from class org.goplanit.converter.idmapping.PlanitComponentIdMapper
add, get, getModeIdMapper, getRaw
-
-
-
-
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)
-
-