class SchemaGenerator {

	public static void genTml(Collection<String> classes, SchemaVersion schemaVersion, OutputStream output, 
			String classpath) throws IOException, TeslaSchemaException, ClassNotFoundException, JAXBException {
		JavaTypeMapper mapper = new JavaTypeMapper();
		Schema.SchemaBuilder schemaBuilder = new Schema.SchemaBuilder();
		schemaBuilder.setVersion(schemaVersion);

		for (String name : classes) {
			java.lang.Class<?> clzz = Util.loadClass(name, classpath);
			mapper.fromJavaClass(schemaBuilder, clzz);
		}
		schemaBuilder.build().save(output);
	}

}