Package org.onebusaway.csv_entities.schema

Examples of org.onebusaway.csv_entities.schema.DefaultEntitySchemaFactory


  }

  private void writeGtfs() throws IOException {
    GtfsWriter writer = new GtfsWriter();
    writer.setOutputLocation(_outputPath);
    DefaultEntitySchemaFactory schemaFactory = new DefaultEntitySchemaFactory();
    schemaFactory.addFactory(GtfsEntitySchemaFactory.createEntitySchemaFactory());
    writer.setEntitySchemaFactory(schemaFactory);
    writer.run(_dao);
  }
View Full Code Here


    paths.add(args[0]);

    ConfigurableApplicationContext context = ContainerLibrary.createContext(paths);
    GtfsDaoImpl store = new GtfsDaoImpl();

    DefaultEntitySchemaFactory schema = GtfsEntitySchemaFactory.createEntitySchemaFactory();
    GenericAdditionalFieldMapping.addGenericFieldMapping(schema, Stop.class,
        "stop_direction", "stopDirection");
    GenericAdditionalFieldMapping.addGenericFieldMapping(schema, Trip.class,
        "block_sequence_id", "blockSequenceId");
View Full Code Here

TOP

Related Classes of org.onebusaway.csv_entities.schema.DefaultEntitySchemaFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.