com.sun.msv.generator
Class Driver
java.lang.Object
com.sun.msv.generator.Driver
public class Driver
- extends java.lang.Object
command line driver.
- Author:
- Kohsuke KAWAGUCHI
Method Summary |
static void |
main(java.lang.String[] args)
|
void |
parseArguments(java.lang.String[] args)
Parses the arguments and fill the fields accordingly. |
int |
run(java.io.PrintStream out)
Generate XML instances. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
grammar
public com.sun.msv.grammar.Grammar grammar
outputName
public java.lang.String outputName
exampleTokens
public final java.util.Set exampleTokens
Driver
public Driver()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
parseArguments
public void parseArguments(java.lang.String[] args)
throws com.sun.msv.generator.Driver.CommandLineException,
javax.xml.parsers.ParserConfigurationException
- Parses the arguments and fill the fields accordingly.
- Throws:
com.sun.msv.generator.Driver.CommandLineException
javax.xml.parsers.ParserConfigurationException
run
public int run(java.io.PrintStream out)
throws java.lang.Exception
- Generate XML instances.
- Returns:
- 0 if it run successfully. Non-zero if any error is encountered.
- Throws:
java.lang.Exception