org.apache.xmlbeans.impl.tool
Class SchemaCodeGenerator

java.lang.Object
  extended by org.apache.xmlbeans.impl.tool.SchemaCodeGenerator

public class SchemaCodeGenerator
extends java.lang.Object


Constructor Summary
SchemaCodeGenerator()
           
 
Method Summary
protected static java.io.File createTempDir()
           
static void saveTypeSystem(SchemaTypeSystem system, java.io.File classesDir, java.io.File sourceFile, Repackager repackager, XmlOptions options)
          Deprecated. Use SchemaTypeSystem.save() instead.
protected static void tryHardToDelete(java.io.File dir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaCodeGenerator

public SchemaCodeGenerator()
Method Detail

saveTypeSystem

public static void saveTypeSystem(SchemaTypeSystem system,
                                  java.io.File classesDir,
                                  java.io.File sourceFile,
                                  Repackager repackager,
                                  XmlOptions options)
                           throws java.io.IOException
Deprecated. Use SchemaTypeSystem.save() instead.

Saves a SchemaTypeSystem to the specified directory.

Parameters:
system - the SchemaTypeSystem to save
classesDir - the destination directory for xsb's
sourceFile - if present, the TypeSystemHolder source will be generated in this file for subsequent compilation, if null then the source will be generated in a temp directory and then compiled to the destination dir
repackager - the repackager to use when generating the holder class
options - options. Can be null
Throws:
java.io.IOException

createTempDir

protected static java.io.File createTempDir()
                                     throws java.io.IOException
Throws:
java.io.IOException

tryHardToDelete

protected static void tryHardToDelete(java.io.File dir)