Module org.entur.netex.gtfs.export
Package org.entur.netex.gtfs.export.util
Class DestinationDisplayUtil
java.lang.Object
org.entur.netex.gtfs.export.util.DestinationDisplayUtil
Utility class for Destination Displays.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetHeadSignFromDestinationDisplay(org.rutebanken.netex.model.DestinationDisplay destinationDisplay, NetexDatasetRepository netexDatasetRepository) Build the GTFS head sign from a destination display that may contain a list of vias (intermediate head signs).static org.rutebanken.netex.model.DestinationDisplaygetInitialDestinationDisplay(org.rutebanken.netex.model.JourneyPattern journeyPattern, NetexDatasetRepository netexDatasetRepository) Return the destination display on the first stop in the journey pattern.
-
Method Details
-
getInitialDestinationDisplay
public static org.rutebanken.netex.model.DestinationDisplay getInitialDestinationDisplay(org.rutebanken.netex.model.JourneyPattern journeyPattern, NetexDatasetRepository netexDatasetRepository) Return the destination display on the first stop in the journey pattern.- Parameters:
journeyPattern- the journey pattern.netexDatasetRepository- the repository of NeTEx data.- Returns:
- the destination display on the first stop in the journey pattern.
-
getHeadSignFromDestinationDisplay
public static String getHeadSignFromDestinationDisplay(org.rutebanken.netex.model.DestinationDisplay destinationDisplay, NetexDatasetRepository netexDatasetRepository) Build the GTFS head sign from a destination display that may contain a list of vias (intermediate head signs). If the destination display front text is A and it refers to 2 Vias with front texts B and C, then the head sign is "A via B/C".- Parameters:
destinationDisplay- the NeTEx destination displaynetexDatasetRepository- the netex dataset repository- Returns:
- a head sign that concatenates the destination display front text and its optional vias.
-