com.sun.msv.generator
Class Driver

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

public class Driver
extends java.lang.Object

command line driver.

Author:
Kohsuke KAWAGUCHI

Field Summary
 java.util.Set exampleTokens
           
 com.sun.msv.grammar.Grammar grammar
           
 java.lang.String outputName
           
 
Constructor Summary
Driver()
           
 
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
 

Field Detail

grammar

public com.sun.msv.grammar.Grammar grammar

outputName

public java.lang.String outputName

exampleTokens

public final java.util.Set exampleTokens
Constructor Detail

Driver

public Driver()
Method Detail

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