- java.lang.Object
-
- com.sun.tools.txw2.TxwOptions
-
public class TxwOptions extends Object
Controls the various aspects of the TXW generation.- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTxwOptions.LanguageType of the schema language.
-
Field Summary
Fields Modifier and Type Field Description JPackage_packageThe package to put the generated code into.booleanchainMethodIf true, generate attribute/value methods that returns thethisobject for chaining.JCodeModelcodeModelErrorListenererrorListenerAlways non-null.TxwOptions.LanguagelanguageType of input schema language.booleannoPackageNamespaceIf true, the generated code will not use the package-levelXmlNamespaceannotation.
-
Constructor Summary
Constructors Constructor Description TxwOptions()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringgetVersion()Gets the version number of TXW.voidprintUsage()
-
-
-
Field Detail
-
codeModel
public final JCodeModel codeModel
-
_package
public JPackage _package
The package to put the generated code into.
-
errorListener
public ErrorListener errorListener
Always non-null.
-
chainMethod
public boolean chainMethod
If true, generate attribute/value methods that returns thethisobject for chaining.
-
noPackageNamespace
public boolean noPackageNamespace
If true, the generated code will not use the package-levelXmlNamespaceannotation.
-
language
public TxwOptions.Language language
Type of input schema language. One of theLanguageconstants.
-
-
Method Detail
-
printUsage
public void printUsage()
-
getVersion
public static String getVersion()
Gets the version number of TXW.- Returns:
- TXW version
-
-