Package org.onebusaway.gtfs.serialization.mappings
-
Interface Summary Interface Description ConverterFactory Factory interface for creating aConverter. -
Class Summary Class Description AgencyIdFieldMappingFactory AgencyIdTranslationFieldMappingFactory DefaultAgencyIdFieldMappingFactory AFieldMappingFactoryimplementation that produces aFieldMappingthat is responsible for setting theAgencyAndId.setAgencyId(String)portion of anAgencyAndIdidentifier.EntityFieldMappingFactory FieldMappingFactorythat produces aFieldMappinginstance capable of mapping a CSV string entity id to an entity instance, and vice versa.FareProductFieldMappingFactory Fare products have a composite primary key of - fare product id - fare medium id (nullable) - rider category id (nullable) So if you want this library to look up the fare product instance you need to supply all of these, hence we need a custom mapping factory.LatLonFieldMappingFactory RouteAgencyFieldMappingFactory Responsible for setting theRoute.setAgency(Agency)from a csv "agency_id" field in "routes.txt" and vice-versa.RouteAgencyIdFieldMappingFactory RouteValidator ServiceDateFieldMappingFactory StopLocationFieldMappingFactory FieldMappingFactorythat produces aFieldMappinginstance capable of mapping a CSV stopLocation string entity id to an concrete entity instance, and vice versa.StopLocationFieldMappingImpl StopTimeFieldMappingFactory TripAgencyIdFieldMappingFactory -
Exception Summary Exception Description AgencyNotFoundForRouteException Error indicating that there was a problem finding the appropriateAgencyinstance to set in a call toRoute.setAgency(Agency).InvalidStopTimeException Indicates the an "arrival_time" or "departure_time" value for in the "stop_times.txt" csv file could not be parsed.RouteNameException The GTFS spec declares that at least one ofRoute.getShortName()orRoute.getLongName()must be specified, if not both.