Class SchemaCodeGenerator

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

public class SchemaCodeGenerator
extends Object
  • Constructor Details

  • Method Details

    • saveTypeSystem

      public static void saveTypeSystem​(SchemaTypeSystem system, File classesDir, File sourceFile, org.apache.xmlbeans.impl.repackage.Repackager repackager, XmlOptions options) throws IOException
      Deprecated.
      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:
      IOException
    • createTempDir

      protected static File createTempDir() throws IOException
      Throws:
      IOException
    • tryHardToDelete

      protected static void tryHardToDelete​(File dir)