Class StopLocationFieldMappingFactory

java.lang.Object
org.onebusaway.gtfs.serialization.mappings.StopLocationFieldMappingFactory
All Implemented Interfaces:
org.onebusaway.csv_entities.schema.FieldMappingFactory

public class StopLocationFieldMappingFactory extends Object implements org.onebusaway.csv_entities.schema.FieldMappingFactory
FieldMappingFactory that produces a FieldMapping instance capable of mapping a CSV stopLocation string entity id to an concrete entity instance, and vice versa. Assumes field entity type subclasses IdentityBean and the target entity can be found with GtfsReaderContext.getEntity(Class, java.io.Serializable).
Author:
bdferris
See Also:
  • Constructor Details

    • StopLocationFieldMappingFactory

      public StopLocationFieldMappingFactory()
  • Method Details

    • createFieldMapping

      public org.onebusaway.csv_entities.schema.FieldMapping createFieldMapping(org.onebusaway.csv_entities.schema.EntitySchemaFactory schemaFactory, Class<?> entityType, String csvFieldName, String objFieldName, Class<?> objFieldType, boolean required)
      Specified by:
      createFieldMapping in interface org.onebusaway.csv_entities.schema.FieldMappingFactory