class TmlProcessor {

	public static Schema build(String path) throws TeslaSchemaException, IOException {
		Collection<Object> types = TmlProcessor.load(path);
		long hash = TmlProcessor.getSchemaHash(path);
		Tml.Version ver = TmlGraph.unmarshallTml(new File(path)).getVersion();
		return TmlProcessor.build(types,
				new SchemaVersion(hash, ver.getNumber() == null ? (short) 0
						: ver.getNumber().shortValue(), ver.getName(), path));
	}

}