Search in sources :

Example 1 with GroupOfLinesRefStructure

use of org.rutebanken.netex.model.GroupOfLinesRefStructure in project OpenTripPlanner by opentripplanner.

the class RouteMapperTest method createExampleLine.

private Line createExampleLine() {
    Line line = new Line();
    line.setId(RUT_LINE_ID);
    line.setTransportMode(AllVehicleModesOfTransportEnumeration.METRO);
    line.setName(new MultilingualString().withValue("Line 1"));
    line.setPublicCode("L1");
    line.setRepresentedByGroupRef(new GroupOfLinesRefStructure().withRef(NETWORK_ID));
    return line;
}
Also used : Line(org.rutebanken.netex.model.Line) MultilingualString(org.rutebanken.netex.model.MultilingualString) GroupOfLinesRefStructure(org.rutebanken.netex.model.GroupOfLinesRefStructure)

Example 2 with GroupOfLinesRefStructure

use of org.rutebanken.netex.model.GroupOfLinesRefStructure in project OpenTripPlanner by opentripplanner.

the class RouteMapperTest method createExampleLine.

private Line createExampleLine() {
    Line line = new Line();
    line.setId(RUT_LINE_ID);
    line.setTransportMode(AllVehicleModesOfTransportEnumeration.METRO);
    line.setName(new MultilingualString().withValue("Line 1"));
    line.setPublicCode("L1");
    line.setRepresentedByGroupRef(new GroupOfLinesRefStructure().withRef(NETWORK_ID));
    line.setBrandingRef(new BrandingRefStructure().withRef(BRANDING_ID));
    return line;
}
Also used : Line(org.rutebanken.netex.model.Line) BrandingRefStructure(org.rutebanken.netex.model.BrandingRefStructure) MultilingualString(org.rutebanken.netex.model.MultilingualString) GroupOfLinesRefStructure(org.rutebanken.netex.model.GroupOfLinesRefStructure)

Aggregations

GroupOfLinesRefStructure (org.rutebanken.netex.model.GroupOfLinesRefStructure)2 Line (org.rutebanken.netex.model.Line)2 MultilingualString (org.rutebanken.netex.model.MultilingualString)2 BrandingRefStructure (org.rutebanken.netex.model.BrandingRefStructure)1