Class EntityFieldMappingFactory
java.lang.Object
org.onebusaway.gtfs.serialization.mappings.EntityFieldMappingFactory
- All Implemented Interfaces:
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).- Author:
- bdferris
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFieldMapping(EntitySchemaFactory schemaFactory, Class<?> entityType, String csvFieldName, String objFieldName, Class<?> objFieldType, boolean required)
-
Constructor Details
-
EntityFieldMappingFactory
public EntityFieldMappingFactory()
-
-
Method Details
-
createFieldMapping
public FieldMapping createFieldMapping(EntitySchemaFactory schemaFactory, Class<?> entityType, String csvFieldName, String objFieldName, Class<?> objFieldType, boolean required) - Specified by:
createFieldMappingin interfaceFieldMappingFactory
-