Package com.sun.tools.jxc
Class SchemaGenerator
java.lang.Object
com.sun.tools.jxc.SchemaGenerator
CLI entry-point to the schema generator.
- Author:
- Bhakti Mehta
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
main
Runs the schema generator.- Parameters:
args
- command line arguments- Throws:
Exception
- for error
-
run
Runs the schema generator.- Parameters:
args
- command line arguments- Returns:
- exit code. 0 if success.
- Throws:
Exception
- for error
-
run
public static int run(String[] args, ClassLoader classLoader) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException Runs the schema generator.- Parameters:
args
- arguments for the schema generatorclassLoader
- the schema generator will run in this classLoader. It needs to be able to load annotation processing and JAXB RI classes. Note that JAXB RI classes refer to annotation processing classes. Must not be null.- Returns:
- exit code. 0 if success.
- Throws:
ClassNotFoundException
- ifSchemaGenerator.Runner
cannot be foundNoSuchMethodException
- ifSchemaGenerator.Runner.compile(java.lang.String[], java.io.File)
cannot be foundIllegalAccessException
- ifSchemaGenerator.Runner.compile(java.lang.String[], java.io.File)
cannot be accessedInvocationTargetException
- ifSchemaGenerator.Runner.compile(java.lang.String[], java.io.File)
cannot be invoked
-