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