Package org.apache.xmlbeans.impl.tool
Class SchemaCodeGenerator
- java.lang.Object
-
- org.apache.xmlbeans.impl.tool.SchemaCodeGenerator
-
public class SchemaCodeGenerator extends Object
-
-
Constructor Summary
Constructors Constructor Description SchemaCodeGenerator()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected static File
createTempDir()
static void
saveTypeSystem(SchemaTypeSystem system, File classesDir, File sourceFile, Repackager repackager, XmlOptions options)
Deprecated.UseSchemaTypeSystem.save(Filer)
instead.protected static void
tryHardToDelete(File dir)
-
-
-
Method Detail
-
saveTypeSystem
public static void saveTypeSystem(SchemaTypeSystem system, File classesDir, File sourceFile, Repackager repackager, XmlOptions options) throws IOException
Deprecated.UseSchemaTypeSystem.save(Filer)
instead.Saves a SchemaTypeSystem to the specified directory.- Parameters:
system
- theSchemaTypeSystem
to saveclassesDir
- the destination directory for xsb'ssourceFile
- 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 dirrepackager
- the repackager to use when generating the holder classoptions
- options. Can be null- Throws:
IOException
-
createTempDir
protected static File createTempDir() throws IOException
- Throws:
IOException
-
tryHardToDelete
protected static void tryHardToDelete(File dir)
-
-