Package com.sun.msv.generator
Class Driver
java.lang.Object
com.sun.msv.generator.Driver
command line driver.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
Command line argument error. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private boolean
private DocumentBuilderFactory
private DataTypeGeneratorImpl
private String
final Set
private SAXParserFactory
private int
private GeneratorOption
private boolean
private StringPair
designated root element name.private boolean
private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Expression
findElement
(Expression exp, StringPair name) private static InputSource
getInputSource
(String fileOrURL) protected double
static void
void
parseArguments
(String[] args) Parses the arguments and fill the fields accordingly.int
run
(PrintStream out) Generate XML instances.private static void
usage()
-
Field Details
-
grammar
-
outputName
-
encoding
-
createError
private boolean createError -
validate
private boolean validate -
debug
private boolean debug -
quiet
private boolean quiet -
warning
private boolean warning -
opt
-
number
private int number -
rootName
designated root element name. -
factory
-
domFactory
-
exampleTokens
-
dtgi
-
-
Constructor Details
-
Driver
public Driver()
-
-
Method Details
-
usage
private static void usage() -
main
- Throws:
Exception
-
getRatio
-
parseArguments
public void parseArguments(String[] args) throws Driver.CommandLineException, ParserConfigurationException Parses the arguments and fill the fields accordingly. -
run
Generate XML instances.- Returns:
- 0 if it run successfully. Non-zero if any error is encountered.
- Throws:
Exception
-
findElement
-
getInputSource
-