Package 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
-
-
Field Summary
Fields Modifier and Type Field Description Set
exampleTokens
Grammar
grammar
String
outputName
-
Constructor Summary
Constructors Constructor Description Driver()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected double
getRatio(String s)
static void
main(String[] args)
void
parseArguments(String[] args)
Parses the arguments and fill the fields accordingly.int
run(PrintStream out)
Generate XML instances.
-
-
-
Method Detail
-
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
-
-