org.onebusaway.gtfs.serialization.mappings
Class EntityFieldMappingFactory
java.lang.Object
org.onebusaway.gtfs.serialization.mappings.EntityFieldMappingFactory
- All Implemented Interfaces:
- FieldMappingFactory
public class EntityFieldMappingFactory
- extends java.lang.Object
- implements 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:
IdentityBean,
GtfsReaderContext.getEntity(Class, java.io.Serializable)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityFieldMappingFactory
public EntityFieldMappingFactory()
createFieldMapping
public FieldMapping createFieldMapping(EntitySchemaFactory schemaFactory,
java.lang.Class<?> entityType,
java.lang.String csvFieldName,
java.lang.String objFieldName,
java.lang.Class<?> objFieldType,
boolean required)
- Specified by:
createFieldMapping in interface FieldMappingFactory
Copyright © 2011 OneBusAway. All Rights Reserved.