org.onebusaway.gtfs.csv.schema.FlattenFieldMappingFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of onebusaway-gtfs Show documentation
Show all versions of onebusaway-gtfs Show documentation
A Java library for reading and writing General Transit Feed Spec feeds
package org.onebusaway.gtfs.csv.schema;
public class FlattenFieldMappingFactory implements FieldMappingFactory {
public FieldMapping createFieldMapping(EntitySchemaFactory schemaFactory, String csvFieldName, String objFieldName,
Class> objFieldType, boolean required) {
EntitySchema schema = schemaFactory.getSchema(objFieldType);
return new FlattenFieldMapping(csvFieldName, objFieldName, objFieldType, required, schema);
}
}