import org.exolab.castor.builder.SourceGenerator;

public class Test
{
	private SourceGenerator sourceGenerator;

	public Test()
	{
		sourceGenerator=new SourceGenerator();
		sourceGenerator.setDescriptorCreation(true);
		sourceGenerator.setJdoDescriptorCreation(true);
		sourceGenerator.setGenerateImportedSchemas(true);
	}

	public void generate() throws Exception
	{
		this.sourceGenerator.generateSource("test.xml","Test");
	}
	
	public static void main (String args[]) throws Exception
	{
		Test t = new Test();
		System.out.println("On a cree l'objet, on genere");
		t.generate();
	}
}
