All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.netex.issues.InterchangePointMappingFailed Maven / Gradle / Ivy

package org.opentripplanner.netex.issues;

import org.opentripplanner.graph_builder.DataImportIssue;

public class InterchangePointMappingFailed implements DataImportIssue {
    private static final String MSG = "Interchange mapping failed. Detail: %s, "
            + "interchange: %s, point: %s, serviceJourney: %s, scheduledStopPoint: %s";

    private final String point;
    private final String interchangeId;
    private final String detail;
    private final String sjId;
    private final String sspId;

    public InterchangePointMappingFailed(
            String detail,
            String interchangeId,
            String point,
            String sjId,
            String sspId
    ) {
        this.point = point;
        this.interchangeId = interchangeId;
        this.detail = detail;
        this.sjId = sjId;
        this.sspId = sspId;
    }

    @Override
    public String getMessage() {
        return String.format(MSG, detail, interchangeId, point, sjId, sspId);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy