NonStop Server for Java 7.0 Tools Reference Pages
26 xjc: Java Architecture for XML Binding Compiler
The xjc tool is the XML binding compiler. The binding compiler can be launched using the
appropriate xjc shell script in the bin directory for your platform. For more information on xjc
tool, see the Oracle Java documentation for xjc.
Synopsis
xjc [-options ...] <schema_file/URL/dir> ... [-b <bindinfo>] ...
The following table lists the xjc options.
DescriptionOption
Does not perform strict validation of the input schema(s).-nv
Allows vendor extensions—does not strictly follow the
Compatibility Rules and App E.2 from the JAXB Spec.
-extension
Specifies external bindings files (each <file> must have
its own -b). If a directory is given, **/*.xjb is searched.
-b <file/dir>
Stores the generated files.-d <dir>
Specifies the target package.-p <pkg>
Sets HTTP/HTTPS proxy. Format is
[user[:password]@]proxyHost:proxyPort.
-httpproxy <proxy>
Sets the proxy string. Format is
[user[:password]@]proxyHost:proxyPort.
-httpproxyfile <file>
Specifies where to find user class files.-classpath <arg>
Specifies catalog files to resolve external entity references
support TR9401, XCatalog, and OASIS XML Catalog
format.
-catalog <file>
Enables the XJC binding compiler to mark the generated
files read-only.
-readOnly
Suppresses generation of package-level annotations (**/
package-info.java).
-npa
Suppresses generation of a file header with timestamp.-no-header
Behaves like XJC 2.0 and generates code that does not
use any 2.1 features.
-target 2.0
Treats input as W3C XML Schema (default).-xmlschema
Treats input as RELAX NG (experimental, unsupported).-relaxng
Treats input as RELAX NG compact syntax (experimental,
unsupported).
-relaxng-compact
Treats input as XML DTD (experimental, unsupported).-dtd
Treats input as WSDL and compile schemas inside it
(experimental, unsupported).
-wsdl
Be extra verbose, such as printing informational messages
or displaying stack traces upon some errors.
-verbose
Suppresses compiler output.-quiet
Displays this help message.-help
Displays version information.-version
Synopsis 53










