- java.lang.Object
-
- com.sun.tools.jxc.SchemaGenerator
-
public final class SchemaGenerator extends Object
CLI entry-point to the schema generator.- Author:
- Bhakti Mehta
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSchemaGenerator.Runner
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)Runs the schema generator.static intrun(String[] args)Runs the schema generator.static intrun(String[] args, ClassLoader classLoader)Runs the schema generator.
-
-
-
Method Detail
-
main
public static void main(String[] args) throws Exception
Runs the schema generator.- Parameters:
args- command line arguments- Throws:
Exception- for error
-
run
public static int run(String[] args) throws Exception
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.Runnercannot 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
-
-