Search in sources :

Example 1 with CsvEntityMappingBean

use of org.onebusaway.csv_entities.schema.beans.CsvEntityMappingBean in project onebusaway-gtfs-modules by OneBusAway.

the class GtfsEntitySchemaFactory method createEntitySchemaFactory.

public static DefaultEntitySchemaFactory createEntitySchemaFactory() {
    DefaultEntitySchemaFactory factory = new DefaultEntitySchemaFactory();
    EntitySchemaFactoryHelper helper = new EntitySchemaFactoryHelper(factory);
    CsvEntityMappingBean agencyId = helper.addEntity(AgencyAndId.class);
    helper.addIgnorableField(agencyId, "agencyId");
    return factory;
}
Also used : CsvEntityMappingBean(org.onebusaway.csv_entities.schema.beans.CsvEntityMappingBean) EntitySchemaFactoryHelper(org.onebusaway.csv_entities.schema.EntitySchemaFactoryHelper) DefaultEntitySchemaFactory(org.onebusaway.csv_entities.schema.DefaultEntitySchemaFactory)

Aggregations

DefaultEntitySchemaFactory (org.onebusaway.csv_entities.schema.DefaultEntitySchemaFactory)1 EntitySchemaFactoryHelper (org.onebusaway.csv_entities.schema.EntitySchemaFactoryHelper)1 CsvEntityMappingBean (org.onebusaway.csv_entities.schema.beans.CsvEntityMappingBean)1