jdk/src/linux/doc/man/xjc.1
author jjg
Tue, 11 Mar 2008 13:14:55 -0700
changeset 168 25697c18650b
parent 2 90ce3da70b43
child 2692 345bc8d65b19
permissions -rw-r--r--
6307187: clean up code for -Xlint:options Summary: introduce common code for handling one-of and any-of options Reviewed-by: mcimadamore
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
.'" t
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
." Copyright 2005-2006 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
." This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
." under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
." published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
." This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
." FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
." version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
." accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
." You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
." 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
." Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
." CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
." have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
." `
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
.TH xjc 1 "07 Aug 2006"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
." Generated by html2man
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
.ad c
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
.SH NAME
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
xjc \- Java(TM) Architecture for XML Binding
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
Binding Compiler \f3Specification Version:\fP 2.0
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
\f3Reference Implementation (RI) Version:\fP 2.0 ea3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
.ad l
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
.SH "Launching xjc"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
The binding compiler can be launched using the appropriate \f2xjc\fP shell script in the \f2bin\fP directory for your platform. We also provide an Ant task to run the binding complier \- see the instructions for using xjc with Ant.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
\f3For Solaris/Linux\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
\f2% /path/to/jaxb/bin/xjc.sh \-help\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
\f3For WindowsNT/2000/XP\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
\f2> c:\\path\\to\\jaxb\\bin\\xjc.bat \-help\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
\f3Output\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
Usage: xjc [\-options ...] <schema_file/URL/dir> ... [\-b <bindinfo>] ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
Options:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
 \-nv                  : do not perform strict validation of the input schema(s)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
 \-extension           : allow vendor extensions \- do not strictly follow the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
                        Compatibility Rules and App E.2 from the JAXB Spec
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
 \-b <file>            : specify external bindings files (each <file> must have its own \-b)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
 \-d <dir>             : generated files will go into this directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
 \-p <pkg>             : specifies the target package
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
 \-httpproxy <proxy>   : set HTTP/HTTPS proxy. Format is [user[:password]@]proxyHost:proxyPort
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
 \-httpproxyfile <file>: set the proxy string (same format as above).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
 \-classpath <arg>     : specify where to find user class files
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
 \-catalog <file>      : specify catalog files to resolve external entity references
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
                        support TR9401, XCatalog, and OASIS XML Catalog format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
 \-readOnly            : generated files will be in read\-only mode
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
 \-npa                 : suppress generation of package level annotations (**/package\-info.java)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
 \-xmlschema           : treat input as W3C XML Schema (default)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
 \-relaxng             : treat input as RELAX NG (experimental,unsupported)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
 \-relaxng\-compact     : treat input as RELAX NG compact syntax (experimental,unsupported)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
 \-dtd                 : treat input as XML DTD (experimental,unsupported)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
 \-wsdl                : treat input as WSDL and compile schemas inside it (experimental,unsupported)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
 \-verbose             : be extra verbose
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
 \-quiet               : suppress compiler output
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
 \-help                : display this help message
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
 \-version             : display version information
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
\f3Execute the jaxb\-xjc.jar JAR File\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
If all else fails, you should be able to execute the \f2jaxb\-xjc.jar\fP file:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
For Solaris/Linux: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
\f2% java \-jar $JAXB_HOME/lib/jaxb\-xjc.jar \-help\fP 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
For Windows: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
\f2> java \-jar %JAXB_HOME%\\lib\\jaxb\-xjc.jar \-help\fP 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
This is equivalent of running "xjc.sh" or "xjc.bat", and it allows you to set the JVM parameters.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
.SH "OPTIONS"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
\-nv 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
By default, the XJC binding compiler performs strict validation of the source schema before processing it. Use this option to disable strict schema validation. This does not mean that the binding compiler will not perform any validation, it simply means that it will perform less\-strict validation. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
\-extension 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
By default, the XJC binding compiler strictly enforces the rules outlined in the Compatibility chapter of the JAXB Specification. Appendix E.2 defines a set of W3C XML Schema features that are not completely supported by JAXB v1.0. In some cases, you may be allowed to use them in the "\-extension" mode enabled by this switch. In the default (strict) mode, you are also limited to using only the binding customizations defined in the specification. By using the "\-extension" switch, you will be allowed to use the JAXB Vendor Extensions. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
\-b <file> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
Specify one or more external binding files to process. (Each binding file must have it's own \f2"\-b"\fP switch.) The syntax of the external binding files is extremely flexible. You may have a single binding file that contains customizations for multiple schemas or you can break the customizations into multiple bindings files: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
\f2xjc schema1.xsd schema2.xsd schema3.xsd \-b bindings123.xjb\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
\f2xjc schema1.xsd schema2.xsd schema3.xsd \-b bindings1.xjb \-b bindings2.xjb \-b bindings3.xjb\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
In addition, the ordering of the schema files and binding files on the command line does not matter. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
\-d <dir> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
By default, the XJC binding compiler will generate the Java content classes in the current directory. Use this option to specify an alternate output directory. The output directory must already exist, the XJC binding compiler will not create it for you. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
\-p <pkg> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
Specifying a target package via this command\-line option overrides any binding customization for package name and the default package name algorithm defined in the specification. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
\-httpproxy <proxy> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
Specify the HTTP/HTTPS proxy. The format is [user[:password]@]proxyHost[:proxyPort]. The old \f2\-host\fP and \f2\-port\fP are still supported by the RI for backwards compatibility, but they have been deprecated. Note that the password specified with this option is an argument that is visible to other users who use the \f2top\fP command, for example. For greater security, use \f2\-httpproxyfile\fP, below. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
\-httpproxyfile <file> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
Specify the HTTP/HTTPS proxy using a file. Same format as above, but the password specified in the file is not visible to other users. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
\-classpath <arg> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
Specify where to find client application class files used by the \f2<jxb:javaType>\fP and \f2<xjc:superClass>\fP customizations. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
\-catalog <file> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
Specify catalog files to resolve external entity references. Supports TR9401, XCatalog, and OASIS XML Catalog format. Please read the XML Entity and URI Resolvers document or the \f2catalog\-resolver\fP sample application. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
\-readOnly 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
By default, the XJC binding compiler does not write\-protect the Java source files it generates. Use this option to force the XJC binding compiler to mark the generated Java sources read\-only. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
\-npa 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
Supress the generation of package level annotations into **/package\-info.java. Using this switch causes the generated code to internalize those annotations into the other generated classes. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
\-xmlschema 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
treat input schemas as W3C XML Schema (default). If you do not specify this switch, your input schemas will be treated as W3C XML Schema. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
\-relaxng 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
Treat input schemas as RELAX NG (experimental, unsupported). Support for RELAX NG schemas is provided as a JAXB Vendor Extension. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
\-relaxng\-compact 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
Treat input schemas as RELAX NG compact syntax(experimental, unsupported). Support for RELAX NG schemas is provided as a JAXB Vendor Extension. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
\-dtd 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
Treat input schemas as XML DTD (experimental, unsupported). Support for RELAX NG schemas is provided as a JAXB Vendor Extension. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
\-wsdl 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
Treat input as WSDL and compile schemas inside it (experimental,unsupported). 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
\-quiet 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
Suppress compiler output, such as progress information and warnings.. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
\-verbose 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
Be extra verbose, such as printing informational messages or displaying stack traces upon some errors.. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
\-help 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
Display a brief summary of the compiler switches. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
\-version 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
Display the compiler version information. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
<schema file/URL/dir> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
Specify one or more schema files to compile. If you specify a directory, then xjc will scan it for all schema files and compile them. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
Summary of Deprecated and Removed Command Line Options
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
\-host & \-port 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
These options have been deprecated and replaced with the \f3\-httpproxy\fP option. For backwards compatibility, we will continue to support these options, but they will no longer be documented and may be removed from future releases. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
\-use\-runtime 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
Since the JAXB 2.0 specification has defined a portable runtime, it is no longer necessary for the JAXB RI to generate **/impl/runtime packages. Therefore, this switch is obsolete and has been removed. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
\-source 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
The \-source compatibility switch was introduced in the first JAXB 2.0 Early Access release. We have decided to remove this switch from future releases of JAXB 2.0. If you need to generate 1.0.x code, please use an installation of the 1.0.x codebase. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
\-Xlocator & \-Xsync\-methods 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
These switches have been disabled for now. We plan on releasing this functionality as a separate download in the future. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
Compiler Restrictions
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
In general, it is safest to compile all related schemas as a single unit with the same binding compiler switches.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
Please keep the following list of restrictions in mind when running xjc. Most of these issues only apply when compiling multiple schemas with multiple invocations of xjc.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
To compile multiple schemas at the same time, keep the following precedence rules for the target Java package name in mind: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
1.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
The "\f2\-p\fP" command line option takes the highest precedence. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
2.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
<\f2jaxb:package\fP> customization 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
3.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
If \f2targetNamespace\fP is declared, apply \f2targetNamespace\fP \-> Java package name algorithm defined in the specification. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
4.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
If no \f2targetNamespace\fP is declared, use a hardcoded package named "generated". 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
It is not legal to have more than one <\f2jaxb:schemaBindings\fP> per namespace, so it is impossible to have two schemas in the same target namespace compiled into different Java packages. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
All schemas being compiled into the same Java package must be submitted to the XJC binding compiler at the same time \- they cannot be compiled independently and work as expected. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
Element substitution groups spread across multiple schema files must be compiled at the same time. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
.SH "See Also"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
JAXB 2.0: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
\f2Release Notes\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
http://java.sun.com/webservices/docs/2.0/jaxb/ReleaseNotes.html 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
\f2XJC\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
http://java.sun.com/webservices/docs/2.0/jaxb/xjc.html 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
\f2XJCTask\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
http://java.sun.com/webservices/docs/2.0/jaxb/xjcTask.html 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
\f2SchemaGen\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
http://java.sun.com/webservices/docs/2.0/jaxb/schemagen.html 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
\f2schemagenTask\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
http://java.sun.com/webservices/docs/2.0/jaxb/schemagenTask.html 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
\f2Sample Apps\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
http://java.sun.com/webservices/docs/2.0/jaxb/samples.html 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
\f2Changelog\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
http://java.sun.com/webservices/docs/2.0/jaxb/changelog2.html 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
JAXB 1.0.x: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
\f2Release Notes\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
http://java.sun.com/webservices/docs/2.0/jaxb/jaxb\-1_0.html 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
\f2Changelog\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
http://java.sun.com/webservices/docs/2.0/jaxb/changelog.html 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
JAXB RI Extensions: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
\f2Runtime Properties\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
http://java.sun.com/webservices/docs/2.0/jaxb/vendorProperties.html 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
\f2XJC Customizations\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
http://java.sun.com/webservices/docs/2.0/jaxb/vendorCustomizations.html 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
\f2Develop Plugins\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
http://java.sun.com/webservices/docs/2.0/jaxb/developPlugins.html 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
JAXB RI Schema Languages: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
\f2W3C XML Schema\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
http://java.sun.com/webservices/docs/2.0/jaxb/vendorSchemaLangs.html#xschema 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
\f2RELAX NG\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
http://java.sun.com/webservices/docs/2.0/jaxb/vendorSchemaLangs.html#relaxng 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
\f2DTD\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
http://java.sun.com/webservices/docs/2.0/jaxb/vendorSchemaLangs.html#dtd 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
JAXB Community: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
\f2Java.net Homepage\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
http://jaxb.dev.java.net 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
\f2Developer interest list\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
https://jaxb.dev.java.net/servlets/ProjectMailingListList 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
\f2FAQ\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
https://jaxb.dev.java.net/faq/index.html 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440