org.apache.xmlbeans.impl.tool
Class SchemaCodeGenerator
java.lang.Object
org.apache.xmlbeans.impl.tool.SchemaCodeGenerator
public class SchemaCodeGenerator
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SchemaCodeGenerator
public SchemaCodeGenerator()
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 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:
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)