diff --git a/core/src/main/scala-2/com/mobimeo/gtfs/StandardName.scala b/core/src/main/scala-2/com/mobimeo/gtfs/StandardName.scala deleted file mode 100644 index 3448c52..0000000 --- a/core/src/main/scala-2/com/mobimeo/gtfs/StandardName.scala +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2021 Mobimeo GmbH - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.mobimeo.gtfs - -import enumeratum._ - -/** Standard GTFS file names. */ -sealed trait StandardName extends EnumEntry with EnumEntry.Snakecase { - override def entryName: String = stableEntryName - - private[this] lazy val stableEntryName: String = s"${super.entryName}.txt" -} - -object StandardName extends Enum[StandardName] { - case object Stops extends StandardName - case object Routes extends StandardName - case object Trips extends StandardName - case object StopTimes extends StandardName - case object Agency extends StandardName - case object Calendar extends StandardName - case object CalendarDates extends StandardName - case object FareAttributes extends StandardName - case object FareRules extends StandardName - case object Shapes extends StandardName - case object Frequencies extends StandardName - case object Transfers extends StandardName - case object Pathways extends StandardName - case object Levels extends StandardName - case object FeedInfo extends StandardName - case object Translations extends StandardName - case object Attributions extends StandardName - - def values = findValues -} diff --git a/core/src/main/scala-2/com/mobimeo/gtfs/model/Availability.scala b/core/src/main/scala-2/com/mobimeo/gtfs/model/Availability.scala deleted file mode 100644 index f5d97e5..0000000 --- a/core/src/main/scala-2/com/mobimeo/gtfs/model/Availability.scala +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2021 Mobimeo GmbH - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.mobimeo.gtfs.model - -import enumeratum.values.{IntEnum, IntEnumEntry} - -sealed abstract class Availability(val value: Int) extends IntEnumEntry -object Availability extends IntEnum[Availability] with CsvIntEnum[Availability] { - case object Availabile extends Availability(1) - case object Unavailable extends Availability(0) - - val values = findValues -} diff --git a/core/src/main/scala-2/com/mobimeo/gtfs/model/CsvEnum.scala b/core/src/main/scala-2/com/mobimeo/gtfs/model/CsvEnum.scala deleted file mode 100644 index a6f75ae..0000000 --- a/core/src/main/scala-2/com/mobimeo/gtfs/model/CsvEnum.scala +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2021 Mobimeo GmbH - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.mobimeo.gtfs.model - -import cats.syntax.all._ -import enumeratum._ -import enumeratum.values._ -import fs2.data.csv.{CellDecoder, CellEncoder, DecoderError} - -trait CsvEnum[T <: EnumEntry] extends Enum[T] { - - implicit val cellDecoder: CellDecoder[T] = - CellDecoder.stringDecoder.emap(s => - withNameEither(s).leftMap(t => new DecoderError(s"Unknown enum value $s", None, t)) - ) - - implicit val cellEncoder: CellEncoder[T] = - CellEncoder.stringEncoder.contramap(_.entryName) - -} - -trait CsvIntEnum[T <: IntEnumEntry] extends IntEnum[T] { - - implicit val cellDecoder: CellDecoder[T] = - CellDecoder.intDecoder.emap(s => - withValueEither(s).leftMap(t => new DecoderError(s"Unknown enum value $s", None, t)) - ) - - implicit val cellEncoder: CellEncoder[T] = - CellEncoder.intEncoder.contramap(_.value) - -} diff --git a/core/src/main/scala-2/com/mobimeo/gtfs/model/ExactTimes.scala b/core/src/main/scala-2/com/mobimeo/gtfs/model/ExactTimes.scala deleted file mode 100644 index bde0b08..0000000 --- a/core/src/main/scala-2/com/mobimeo/gtfs/model/ExactTimes.scala +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2021 Mobimeo GmbH - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.mobimeo.gtfs.model - -import enumeratum.values.{IntEnum, IntEnumEntry} - -sealed abstract class ExactTimes(val value: Int) extends IntEnumEntry -object ExactTimes extends IntEnum[ExactTimes] with CsvIntEnum[ExactTimes] { - case object FrequencyBased extends ExactTimes(0) - case object ScheduleBased extends ExactTimes(1) - - val values = findValues -} diff --git a/core/src/main/scala-2/com/mobimeo/gtfs/model/ExceptionType.scala b/core/src/main/scala-2/com/mobimeo/gtfs/model/ExceptionType.scala deleted file mode 100644 index 3e1a6ce..0000000 --- a/core/src/main/scala-2/com/mobimeo/gtfs/model/ExceptionType.scala +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2021 Mobimeo GmbH - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.mobimeo.gtfs.model - -import enumeratum.values.{IntEnum, IntEnumEntry} - -sealed abstract class ExceptionType(val value: Int) extends IntEnumEntry -object ExceptionType extends IntEnum[ExceptionType] with CsvIntEnum[ExceptionType] { - case object Added extends ExceptionType(1) - case object Removed extends ExceptionType(2) - - val values = findValues -} diff --git a/core/src/main/scala-2/com/mobimeo/gtfs/model/ExtendedRouteType.scala b/core/src/main/scala-2/com/mobimeo/gtfs/model/ExtendedRouteType.scala deleted file mode 100644 index eedf152..0000000 --- a/core/src/main/scala-2/com/mobimeo/gtfs/model/ExtendedRouteType.scala +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright 2021 Mobimeo GmbH - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.mobimeo.gtfs.model - -import enumeratum.EnumEntry -import enumeratum.values.{IntEnum, IntEnumEntry} - -/** Extended route types. See https://developers.google.com/transit/gtfs/reference/extended-route-types - */ -sealed abstract class ExtendedRouteType(val value: Int) extends IntEnumEntry with EnumEntry -object ExtendedRouteType extends IntEnum[ExtendedRouteType] with CsvIntEnum[ExtendedRouteType] { - case object SomeRailwayService extends ExtendedRouteType(100) - case object HighSpeedRailService extends ExtendedRouteType(101) - case object LongDistanceTrains extends ExtendedRouteType(102) - case object InterRegionalRailService extends ExtendedRouteType(103) - case object CarTransportRailService extends ExtendedRouteType(104) - case object SleeperRailService extends ExtendedRouteType(105) - case object RegionalRailService extends ExtendedRouteType(106) - case object TouristRailwayService extends ExtendedRouteType(107) - case object RailShuttle extends ExtendedRouteType(108) - case object SuburbanRailway extends ExtendedRouteType(109) - case object ReplacementRailService extends ExtendedRouteType(110) - case object SpecialRailService extends ExtendedRouteType(111) - case object LorryTransportRailService extends ExtendedRouteType(112) - case object AllRailServices extends ExtendedRouteType(113) - case object CrossCountryRailService extends ExtendedRouteType(114) - case object VehicleTransportRailService extends ExtendedRouteType(115) - case object RackAndPinionRailway extends ExtendedRouteType(116) - case object AdditionalRailService extends ExtendedRouteType(117) - - case object SomeCoachService extends ExtendedRouteType(200) - case object InternationalCoachService extends ExtendedRouteType(201) - case object NationalCoachService extends ExtendedRouteType(202) - case object ShuttleCoachService extends ExtendedRouteType(203) - case object RegionalCoachService extends ExtendedRouteType(204) - case object SpecialCoachService extends ExtendedRouteType(205) - case object SightseeingCoachService extends ExtendedRouteType(206) - case object TouristCoachService extends ExtendedRouteType(207) - case object CommuterCoachService extends ExtendedRouteType(208) - case object AllCoachServices extends ExtendedRouteType(209) - - case object SomeUrbanRailwayService extends ExtendedRouteType(400) - case object MetroService extends ExtendedRouteType(401) - case object UndergroundService extends ExtendedRouteType(402) - case object UrbanRailwayService extends ExtendedRouteType(403) - case object AllUrbanRailwayServices extends ExtendedRouteType(404) - case object Monorail extends ExtendedRouteType(405) - - case object SomeBusService extends ExtendedRouteType(700) - case object RegionalBusService extends ExtendedRouteType(701) - case object ExpressBusService extends ExtendedRouteType(702) - case object StoppingBusService extends ExtendedRouteType(703) - case object LocalBusService extends ExtendedRouteType(704) - case object NightBusService extends ExtendedRouteType(705) - case object PostBusService extends ExtendedRouteType(706) - case object SpecialNeedsBus extends ExtendedRouteType(707) - case object MobilityBusService extends ExtendedRouteType(708) - case object MobilityBusForRegisteredDisabled extends ExtendedRouteType(709) - case object SightseeingBus extends ExtendedRouteType(710) - case object ShuttleBus extends ExtendedRouteType(711) - case object SchoolBus extends ExtendedRouteType(712) - case object SchoolAndPublicServiceBus extends ExtendedRouteType(713) - case object RailReplacementBusService extends ExtendedRouteType(714) - case object DemandAndResponseBusService extends ExtendedRouteType(715) - case object AllBusServices extends ExtendedRouteType(716) - - case object SomeTrolleybusService extends ExtendedRouteType(800) - - case object SomeTramService extends ExtendedRouteType(900) - case object CityTramService extends ExtendedRouteType(901) - case object LocalTramService extends ExtendedRouteType(902) - case object RegionalTramService extends ExtendedRouteType(903) - case object SightseeingTramService extends ExtendedRouteType(904) - case object ShuttleTramService extends ExtendedRouteType(905) - case object AllTranServices extends ExtendedRouteType(906) - - case object SomeWaterTransportService extends ExtendedRouteType(1000) - - case object SomeAirTransportService extends ExtendedRouteType(1100) - - case object SomeFerryService extends ExtendedRouteType(1200) - - case object SomeAerialLiftService extends ExtendedRouteType(1300) - - case object SomeFunicularService extends ExtendedRouteType(1400) - - case object SomeTaxiService extends ExtendedRouteType(1500) - case object CommunalTaxiService extends ExtendedRouteType(1501) - case object WaterTaxiService extends ExtendedRouteType(1502) - case object RailTaxiService extends ExtendedRouteType(1503) - case object BikeTaxiService extends ExtendedRouteType(1504) - case object LicensedTaxiService extends ExtendedRouteType(1505) - case object PrivateHireServiceVehicle extends ExtendedRouteType(1506) - case object AllTaxiServices extends ExtendedRouteType(1507) - - case object MiscellaneousService extends ExtendedRouteType(1700) - case object HorseDrawnCarriage extends ExtendedRouteType(1702) - - val values = findValues -} diff --git a/core/src/main/scala-2/com/mobimeo/gtfs/model/LocationType.scala b/core/src/main/scala-2/com/mobimeo/gtfs/model/LocationType.scala deleted file mode 100644 index 09cfa36..0000000 --- a/core/src/main/scala-2/com/mobimeo/gtfs/model/LocationType.scala +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2021 Mobimeo GmbH - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.mobimeo.gtfs.model - -import enumeratum.values.{IntEnum, IntEnumEntry} - -sealed abstract class LocationType(val value: Int) extends IntEnumEntry -object LocationType extends IntEnum[LocationType] with CsvIntEnum[LocationType] { - case object Stop extends LocationType(0) - case object Station extends LocationType(1) - case object Entrance extends LocationType(2) - case object GenericNode extends LocationType(3) - case object BoardingArea extends LocationType(4) - - val values = findValues -} diff --git a/core/src/main/scala-2/com/mobimeo/gtfs/model/PathwayMode.scala b/core/src/main/scala-2/com/mobimeo/gtfs/model/PathwayMode.scala deleted file mode 100644 index 9847ed9..0000000 --- a/core/src/main/scala-2/com/mobimeo/gtfs/model/PathwayMode.scala +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright 2021 Mobimeo GmbH - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.mobimeo.gtfs.model - -import enumeratum.values.{IntEnum, IntEnumEntry} - -sealed abstract class PathwayMode(val value: Int) extends IntEnumEntry -object PathwayMode extends IntEnum[PathwayMode] with CsvIntEnum[PathwayMode] { - case object Walkway extends PathwayMode(1) - case object Stairs extends PathwayMode(2) - case object MovingSidewalk extends PathwayMode(3) - case object Escalator extends PathwayMode(4) - case object Elevator extends PathwayMode(5) - case object FareGate extends PathwayMode(6) - case object ExitGate extends PathwayMode(7) - - val values = findValues -} diff --git a/core/src/main/scala-2/com/mobimeo/gtfs/model/PaymentMethod.scala b/core/src/main/scala-2/com/mobimeo/gtfs/model/PaymentMethod.scala deleted file mode 100644 index a39e0b9..0000000 --- a/core/src/main/scala-2/com/mobimeo/gtfs/model/PaymentMethod.scala +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2021 Mobimeo GmbH - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.mobimeo.gtfs.model - -import enumeratum.values.{IntEnum, IntEnumEntry} - -sealed abstract class PaymentMethod(val value: Int) extends IntEnumEntry -object PaymentMethod extends IntEnum[PaymentMethod] with CsvIntEnum[PaymentMethod] { - case object OnBoard extends PaymentMethod(0) - case object BeforeBoarding extends PaymentMethod(1) - - val values = findValues -} diff --git a/core/src/main/scala-2/com/mobimeo/gtfs/model/PickupOrDropOffType.scala b/core/src/main/scala-2/com/mobimeo/gtfs/model/PickupOrDropOffType.scala deleted file mode 100644 index 7181969..0000000 --- a/core/src/main/scala-2/com/mobimeo/gtfs/model/PickupOrDropOffType.scala +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright 2021 Mobimeo GmbH - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.mobimeo.gtfs.model - -import enumeratum.values.{IntEnum, IntEnumEntry} - -sealed abstract class PickupOrDropOffType(val value: Int) extends IntEnumEntry -object PickupOrDropOffType extends IntEnum[PickupOrDropOffType] with CsvIntEnum[PickupOrDropOffType] { - case object RegularlyScheduled extends PickupOrDropOffType(0) - case object None extends PickupOrDropOffType(1) - case object MustPhoneAgency extends PickupOrDropOffType(2) - case object MustCoordinateWithDriver extends PickupOrDropOffType(3) - - val values = findValues -} diff --git a/core/src/main/scala-2/com/mobimeo/gtfs/model/SimpleRouteType.scala b/core/src/main/scala-2/com/mobimeo/gtfs/model/SimpleRouteType.scala deleted file mode 100644 index 2eade59..0000000 --- a/core/src/main/scala-2/com/mobimeo/gtfs/model/SimpleRouteType.scala +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2021 Mobimeo GmbH - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.mobimeo.gtfs.model - -import enumeratum.EnumEntry -import enumeratum.values.{IntEnum, IntEnumEntry} - -sealed abstract class SimpleRouteType(val value: Int) extends IntEnumEntry with EnumEntry -object SimpleRouteType extends IntEnum[SimpleRouteType] with CsvIntEnum[SimpleRouteType] { - case object Tram extends SimpleRouteType(0) - case object Subway extends SimpleRouteType(1) - case object Rail extends SimpleRouteType(2) - case object Bus extends SimpleRouteType(3) - case object Ferry extends SimpleRouteType(4) - case object CableTram extends SimpleRouteType(5) - case object AerialLift extends SimpleRouteType(6) - case object Funicular extends SimpleRouteType(7) - case object Trolleybus extends SimpleRouteType(11) - case object Monorail extends SimpleRouteType(12) - - val values = findValues -} diff --git a/core/src/main/scala-2/com/mobimeo/gtfs/model/TableName.scala b/core/src/main/scala-2/com/mobimeo/gtfs/model/TableName.scala deleted file mode 100644 index 157fd71..0000000 --- a/core/src/main/scala-2/com/mobimeo/gtfs/model/TableName.scala +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright 2021 Mobimeo GmbH - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.mobimeo.gtfs.model - -import enumeratum.{Enum, EnumEntry} - -sealed trait TableName extends EnumEntry with EnumEntry.Snakecase -object TableName extends Enum[TableName] with CsvEnum[TableName] { - case object Agency extends TableName - case object Stops extends TableName - case object Routes extends TableName - case object Trips extends TableName - case object StopTimes extends TableName - case object FeedInfo extends TableName - case object Pathways extends TableName - case object Levels extends TableName - case object Attributions extends TableName - - val values = findValues -} diff --git a/core/src/main/scala-2/com/mobimeo/gtfs/model/Timepoint.scala b/core/src/main/scala-2/com/mobimeo/gtfs/model/Timepoint.scala deleted file mode 100644 index ceb1821..0000000 --- a/core/src/main/scala-2/com/mobimeo/gtfs/model/Timepoint.scala +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2021 Mobimeo GmbH - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.mobimeo.gtfs.model - -import enumeratum.values.{IntEnum, IntEnumEntry} - -sealed abstract class Timepoint(val value: Int) extends IntEnumEntry -object Timepoint extends IntEnum[Timepoint] with CsvIntEnum[Timepoint] { - case object Approximate extends Timepoint(0) - case object Exact extends Timepoint(1) - - val values = findValues -} diff --git a/core/src/main/scala-2/com/mobimeo/gtfs/model/TransferType.scala b/core/src/main/scala-2/com/mobimeo/gtfs/model/TransferType.scala deleted file mode 100644 index 993c4b7..0000000 --- a/core/src/main/scala-2/com/mobimeo/gtfs/model/TransferType.scala +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright 2021 Mobimeo GmbH - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.mobimeo.gtfs.model - -import enumeratum.values.{IntEnum, IntEnumEntry} - -sealed abstract class TransferType(val value: Int) extends IntEnumEntry -object TransferType extends IntEnum[TransferType] with CsvIntEnum[TransferType] { - case object RecommendedTransfer extends TransferType(0) - case object TimedTransfer extends TransferType(1) - case object MinimumTimeRequiredTransfer extends TransferType(2) - case object ImpossibleTransfer extends TransferType(3) - - val values = findValues -} diff --git a/core/src/main/scala-3/com/mobimeo/gtfs/StandardName.scala b/core/src/main/scala/com/mobimeo/gtfs/StandardName.scala similarity index 100% rename from core/src/main/scala-3/com/mobimeo/gtfs/StandardName.scala rename to core/src/main/scala/com/mobimeo/gtfs/StandardName.scala diff --git a/core/src/main/scala-3/com/mobimeo/gtfs/model/Availability.scala b/core/src/main/scala/com/mobimeo/gtfs/model/Availability.scala similarity index 100% rename from core/src/main/scala-3/com/mobimeo/gtfs/model/Availability.scala rename to core/src/main/scala/com/mobimeo/gtfs/model/Availability.scala diff --git a/core/src/main/scala-3/com/mobimeo/gtfs/model/CsvEnum.scala b/core/src/main/scala/com/mobimeo/gtfs/model/CsvEnum.scala similarity index 100% rename from core/src/main/scala-3/com/mobimeo/gtfs/model/CsvEnum.scala rename to core/src/main/scala/com/mobimeo/gtfs/model/CsvEnum.scala diff --git a/core/src/main/scala-3/com/mobimeo/gtfs/model/ExactTimes.scala b/core/src/main/scala/com/mobimeo/gtfs/model/ExactTimes.scala similarity index 100% rename from core/src/main/scala-3/com/mobimeo/gtfs/model/ExactTimes.scala rename to core/src/main/scala/com/mobimeo/gtfs/model/ExactTimes.scala diff --git a/core/src/main/scala-3/com/mobimeo/gtfs/model/ExceptionType.scala b/core/src/main/scala/com/mobimeo/gtfs/model/ExceptionType.scala similarity index 100% rename from core/src/main/scala-3/com/mobimeo/gtfs/model/ExceptionType.scala rename to core/src/main/scala/com/mobimeo/gtfs/model/ExceptionType.scala diff --git a/core/src/main/scala-3/com/mobimeo/gtfs/model/ExtendedRouteType.scala b/core/src/main/scala/com/mobimeo/gtfs/model/ExtendedRouteType.scala similarity index 100% rename from core/src/main/scala-3/com/mobimeo/gtfs/model/ExtendedRouteType.scala rename to core/src/main/scala/com/mobimeo/gtfs/model/ExtendedRouteType.scala diff --git a/core/src/main/scala-3/com/mobimeo/gtfs/model/LocationType.scala b/core/src/main/scala/com/mobimeo/gtfs/model/LocationType.scala similarity index 100% rename from core/src/main/scala-3/com/mobimeo/gtfs/model/LocationType.scala rename to core/src/main/scala/com/mobimeo/gtfs/model/LocationType.scala diff --git a/core/src/main/scala-3/com/mobimeo/gtfs/model/PathwayMode.scala b/core/src/main/scala/com/mobimeo/gtfs/model/PathwayMode.scala similarity index 100% rename from core/src/main/scala-3/com/mobimeo/gtfs/model/PathwayMode.scala rename to core/src/main/scala/com/mobimeo/gtfs/model/PathwayMode.scala diff --git a/core/src/main/scala-3/com/mobimeo/gtfs/model/PaymentMethod.scala b/core/src/main/scala/com/mobimeo/gtfs/model/PaymentMethod.scala similarity index 100% rename from core/src/main/scala-3/com/mobimeo/gtfs/model/PaymentMethod.scala rename to core/src/main/scala/com/mobimeo/gtfs/model/PaymentMethod.scala diff --git a/core/src/main/scala-3/com/mobimeo/gtfs/model/PickupOrDropOffType.scala b/core/src/main/scala/com/mobimeo/gtfs/model/PickupOrDropOffType.scala similarity index 100% rename from core/src/main/scala-3/com/mobimeo/gtfs/model/PickupOrDropOffType.scala rename to core/src/main/scala/com/mobimeo/gtfs/model/PickupOrDropOffType.scala diff --git a/core/src/main/scala-3/com/mobimeo/gtfs/model/SimpleRouteType.scala b/core/src/main/scala/com/mobimeo/gtfs/model/SimpleRouteType.scala similarity index 100% rename from core/src/main/scala-3/com/mobimeo/gtfs/model/SimpleRouteType.scala rename to core/src/main/scala/com/mobimeo/gtfs/model/SimpleRouteType.scala diff --git a/core/src/main/scala-3/com/mobimeo/gtfs/model/TableName.scala b/core/src/main/scala/com/mobimeo/gtfs/model/TableName.scala similarity index 100% rename from core/src/main/scala-3/com/mobimeo/gtfs/model/TableName.scala rename to core/src/main/scala/com/mobimeo/gtfs/model/TableName.scala diff --git a/core/src/main/scala-3/com/mobimeo/gtfs/model/Timepoint.scala b/core/src/main/scala/com/mobimeo/gtfs/model/Timepoint.scala similarity index 100% rename from core/src/main/scala-3/com/mobimeo/gtfs/model/Timepoint.scala rename to core/src/main/scala/com/mobimeo/gtfs/model/Timepoint.scala diff --git a/core/src/main/scala-3/com/mobimeo/gtfs/model/TransferType.scala b/core/src/main/scala/com/mobimeo/gtfs/model/TransferType.scala similarity index 100% rename from core/src/main/scala-3/com/mobimeo/gtfs/model/TransferType.scala rename to core/src/main/scala/com/mobimeo/gtfs/model/TransferType.scala diff --git a/rules/src/main/scala-2/com/mobimeo/gtfs/rules/LogLevel.scala b/rules/src/main/scala-2/com/mobimeo/gtfs/rules/LogLevel.scala deleted file mode 100644 index f6b7192..0000000 --- a/rules/src/main/scala-2/com/mobimeo/gtfs/rules/LogLevel.scala +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright 2021 Mobimeo GmbH - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.mobimeo.gtfs.rules - -import enumeratum._ - -sealed trait LogLevel extends EnumEntry with EnumEntry.Uppercase -object LogLevel extends Enum[LogLevel] { - case object Debug extends LogLevel - case object Info extends LogLevel - case object Warning extends LogLevel - case object Error extends LogLevel - - def values: IndexedSeq[LogLevel] = findValues -} diff --git a/rules/src/main/scala-3/com/mobimeo/gtfs/rules/LogLevel.scala b/rules/src/main/scala/com/mobimeo/gtfs/rules/LogLevel.scala similarity index 100% rename from rules/src/main/scala-3/com/mobimeo/gtfs/rules/LogLevel.scala rename to rules/src/main/scala/com/mobimeo/gtfs/rules/LogLevel.scala