Class EntityFieldMappingFactory
- java.lang.Object
-
- org.onebusaway.gtfs.serialization.mappings.EntityFieldMappingFactory
-
- All Implemented Interfaces:
org.onebusaway.csv_entities.schema.FieldMappingFactory
public class EntityFieldMappingFactory extends Object implements org.onebusaway.csv_entities.schema.FieldMappingFactory
FieldMappingFactorythat produces aFieldMappinginstance capable of mapping a CSV string entity id to an entity instance, and vice versa. Assumes field entity type subclassesIdentityBeanand the target entity can be found withGtfsReaderContext.getEntity(Class, java.io.Serializable).- Author:
- bdferris
- See Also:
IdentityBean,GtfsReaderContext.getEntity(Class, java.io.Serializable)
-
-
Constructor Summary
Constructors Constructor Description EntityFieldMappingFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.onebusaway.csv_entities.schema.FieldMappingcreateFieldMapping(org.onebusaway.csv_entities.schema.EntitySchemaFactory schemaFactory, Class<?> entityType, String csvFieldName, String objFieldName, Class<?> objFieldType, boolean required)
-
-
-
Method Detail
-
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:
createFieldMappingin interfaceorg.onebusaway.csv_entities.schema.FieldMappingFactory
-
-