Class Driver
java.lang.Object
com.sun.msv.generator.Driver
command line driver.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classCommand line argument error. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate DocumentBuilderFactoryprivate DataTypeGeneratorImplprivate Stringfinal Setprivate SAXParserFactoryprivate intprivate GeneratorOptionprivate booleanprivate StringPairdesignated root element name.private booleanprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ExpressionfindElement(Expression exp, StringPair name) private static InputSourcegetInputSource(String fileOrURL) protected doublestatic voidvoidparseArguments(String[] args) Parses the arguments and fill the fields accordingly.intrun(PrintStream out) Generate XML instances.private static voidusage()
-
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
-
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
-