com.sun.msv.generator
Class Driver

java.lang.Object
  extended by com.sun.msv.generator.Driver

public class Driver
extends Object

command line driver.

Author:
Kohsuke KAWAGUCHI

Field Summary
 Set exampleTokens
           
 Grammar grammar
           
 String outputName
           
 
Constructor Summary
Driver()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

grammar

public Grammar grammar

outputName

public String outputName

exampleTokens

public final Set exampleTokens
Constructor Detail

Driver

public Driver()
Method Detail

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