diff --git a/src/main/java/no/entur/uttu/export/model/ServiceLink.java b/src/main/java/no/entur/uttu/export/model/ServiceLinkExportContext.java similarity index 85% rename from src/main/java/no/entur/uttu/export/model/ServiceLink.java rename to src/main/java/no/entur/uttu/export/model/ServiceLinkExportContext.java index 6633f7c3..ce876a15 100644 --- a/src/main/java/no/entur/uttu/export/model/ServiceLink.java +++ b/src/main/java/no/entur/uttu/export/model/ServiceLinkExportContext.java @@ -3,7 +3,7 @@ import no.entur.uttu.model.Ref; import no.entur.uttu.model.VehicleModeEnumeration; -public record ServiceLink( +public record ServiceLinkExportContext( String quayRefFrom, String quayRefTo, VehicleModeEnumeration transportMode, diff --git a/src/main/java/no/entur/uttu/export/netex/NetexExportContext.java b/src/main/java/no/entur/uttu/export/netex/NetexExportContext.java index 27f05f0a..a2f33099 100644 --- a/src/main/java/no/entur/uttu/export/netex/NetexExportContext.java +++ b/src/main/java/no/entur/uttu/export/netex/NetexExportContext.java @@ -22,7 +22,7 @@ import java.util.Set; import java.util.concurrent.atomic.AtomicLong; import no.entur.uttu.export.model.AvailabilityPeriod; -import no.entur.uttu.export.model.ServiceLink; +import no.entur.uttu.export.model.ServiceLinkExportContext; import no.entur.uttu.model.DayType; import no.entur.uttu.model.DestinationDisplay; import no.entur.uttu.model.FlexibleStopPlace; @@ -60,7 +60,7 @@ public class NetexExportContext { public Set destinationDisplays = new HashSet<>(); - public Set serviceLinks = new HashSet(); + public Set serviceLinks = new HashSet(); private Map idSequences = new HashMap<>(); diff --git a/src/main/java/no/entur/uttu/export/netex/producer/line/JourneyPatternProducer.java b/src/main/java/no/entur/uttu/export/netex/producer/line/JourneyPatternProducer.java index c2c5bd4c..c658cc70 100644 --- a/src/main/java/no/entur/uttu/export/netex/producer/line/JourneyPatternProducer.java +++ b/src/main/java/no/entur/uttu/export/netex/producer/line/JourneyPatternProducer.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Objects; import java.util.stream.Collectors; -import no.entur.uttu.export.model.ServiceLink; +import no.entur.uttu.export.model.ServiceLinkExportContext; import no.entur.uttu.export.netex.NetexExportContext; import no.entur.uttu.export.netex.producer.NetexIdProducer; import no.entur.uttu.export.netex.producer.NetexObjectFactory; @@ -275,7 +275,7 @@ private ServiceLinkInJourneyPattern_VersionedChildStructure mapServiceLinkInJour ); context.serviceLinks.add( - new ServiceLink( + new ServiceLinkExportContext( from.getQuayRef(), to.getQuayRef(), transportMode,