public class EntityFieldMappingFactory extends Object implements org.onebusaway.csv_entities.schema.FieldMappingFactory
FieldMappingFactory that produces a FieldMapping instance
capable of mapping a CSV string entity id to an 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).IdentityBean,
GtfsReaderContext.getEntity(Class, java.io.Serializable)| Constructor and Description |
|---|
EntityFieldMappingFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.onebusaway.csv_entities.schema.FieldMapping |
createFieldMapping(org.onebusaway.csv_entities.schema.EntitySchemaFactory schemaFactory,
Class<?> entityType,
String csvFieldName,
String objFieldName,
Class<?> objFieldType,
boolean required) |
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)
createFieldMapping in interface org.onebusaway.csv_entities.schema.FieldMappingFactoryCopyright © 2015 OneBusAway. All Rights Reserved.