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
Modifier and Type Method Description protected static File
createTempDir()
static void
saveTypeSystem(SchemaTypeSystem system, File classesDir, File sourceFile, org.apache.xmlbeans.impl.repackage.Repackager repackager, XmlOptions options)
Deprecated.UseSchemaTypeSystem.save(Filer)
instead.protected static void
tryHardToDelete(File dir)
-
Constructor Details
-
SchemaCodeGenerator
public SchemaCodeGenerator()
-
-
Method Details
-
saveTypeSystem
public static void saveTypeSystem(SchemaTypeSystem system, File classesDir, File sourceFile, org.apache.xmlbeans.impl.repackage.Repackager repackager, XmlOptions options) throws IOExceptionDeprecated.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
- Throws:
IOException
-
tryHardToDelete
-