com.sun.tools.jxc
Class SchemaGenerator

java.lang.Object
  extended by com.sun.tools.jxc.SchemaGenerator

public class SchemaGenerator
extends java.lang.Object

CLI entry-point to the schema generator.


Nested Class Summary
static class SchemaGenerator.Runner
           
 
Constructor Summary
SchemaGenerator()
           
 
Method Summary
static void main(java.lang.String[] args)
          Runs the schema generator.
static int run(java.lang.String[] args)
           
static int run(java.lang.String[] args, java.lang.ClassLoader classLoader)
          Runs the schema generator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaGenerator

public SchemaGenerator()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Runs the schema generator.

Throws:
java.lang.Exception

run

public static int run(java.lang.String[] args)
               throws java.lang.Exception
Throws:
java.lang.Exception

run

public static int run(java.lang.String[] args,
                      java.lang.ClassLoader classLoader)
               throws java.lang.ClassNotFoundException,
                      java.lang.NoSuchMethodException,
                      java.lang.IllegalAccessException,
                      java.lang.reflect.InvocationTargetException
Runs the schema generator.

Parameters:
classLoader - the schema generator will run in this classLoader. It needs to be able to load APT and JAXB RI classes. Note that JAXB RI classes refer to APT classes. Must not be null.
Returns:
exit code. 0 if success.
Throws:
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException