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

org.entur.gbfs.mapper.GBFSFeedNameMapper Maven / Gradle / Ivy

There is a newer version: 2.0.16
Show newest version
package org.entur.gbfs.mapper;

import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.MappingConstants;
import org.mapstruct.ValueMapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface GBFSFeedNameMapper {
    GBFSFeedNameMapper INSTANCE = Mappers.getMapper( GBFSFeedNameMapper.class );

    @ValueMapping(target = "GBFS", source = "GBFS")
    @ValueMapping(target = "GBFSVersions", source = "GBFS_VERSIONS")
    @ValueMapping(target = "SystemInformation", source = "SYSTEM_INFORMATION")
    @ValueMapping(target = "VehicleTypes", source = "VEHICLE_TYPES")
    @ValueMapping(target = "StationInformation", source = "STATION_INFORMATION")
    @ValueMapping(target = "StationStatus", source = "STATION_STATUS")
    @ValueMapping(target = "FreeBikeStatus", source = "VEHICLE_STATUS")
    @ValueMapping(target = "SystemAlerts", source = "SYSTEM_ALERTS")
    @ValueMapping(target = "SystemRegions", source = "SYSTEM_REGIONS")
    @ValueMapping(target = "SystemPricingPlans", source = "SYSTEM_PRICING_PLANS")
    @ValueMapping(target = "GeofencingZones", source = "GEOFENCING_ZONES")
    org.mobilitydata.gbfs.v2_3.gbfs.GBFSFeedName map(org.mobilitydata.gbfs.v3_0.gbfs.GBFSFeed.Name source);

    @InheritInverseConfiguration
    @ValueMapping(source = MappingConstants.ANY_REMAINING, target = MappingConstants.NULL)
    org.mobilitydata.gbfs.v3_0.gbfs.GBFSFeed.Name map(org.mobilitydata.gbfs.v2_3.gbfs.GBFSFeedName source);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy