|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.tools.xjc.Driver
public class Driver
CUI of XJC.
Nested Class Summary | |
---|---|
(package private) static class |
Driver.OptionsEx
Command-line arguments processor. |
Constructor Summary | |
---|---|
Driver()
|
Method Summary | |
---|---|
static String |
getBuildID()
|
static void |
main(String[] args)
|
static int |
run(String[] args,
PrintStream status,
PrintStream out)
Performs schema compilation and prints the status/error into the specified PrintStream. |
static int |
run(String[] args,
XJCListener listener)
Performs schema compilation and prints the status/error into the specified PrintStream. |
static void |
usage(Options opts,
boolean privateUsage)
Prints the usage screen and exits the process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Driver()
Method Detail |
---|
public static void main(String[] args) throws Exception
Exception
public static int run(String[] args, PrintStream status, PrintStream out) throws Exception
This method could be used to trigger XJC from other tools, such as Ant or IDE.
args
- specified command line parameters. If there is an error
in the parameters, BadCommandLineException
will
be thrown.status
- Status report of the compilation will be sent to this object.
Useful to update users so that they will know something is happening.
Only ignorable messages should be sent to this stream.
This parameter can be null to suppress messages.out
- Various non-ignorable output (error messages, etc)
will go to this stream.
Exception
public static int run(String[] args, @NotNull XJCListener listener) throws BadCommandLineException
This method could be used to trigger XJC from other tools, such as Ant or IDE.
args
- specified command line parameters. If there is an error
in the parameters, BadCommandLineException
will
be thrown.listener
- Receives messages from XJC reporting progress/errors.
BadCommandLineException
public static String getBuildID()
public static void usage(@Nullable Options opts, boolean privateUsage)
opts
- If the parsing of options have started, set a partly populated
Options
object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |