jdk/src/linux/doc/man/ja/xjc.1
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 2 90ce3da70b43
child 2692 345bc8d65b19
permissions -rw-r--r--
Initial load
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 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 "2006 年 9 月 4 日" "Java SE 6" "ユーザーコマンド"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
." Generated by html2roff
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 名前
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
XML バインドのための Java(TM) アーキテクチャ
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
バインドコンパイラ (xjc) \f3仕様のバージョン:\fP 2.0
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
\f3リファレンス実装 (Reference Implementation、RI) のバージョン:\fP 2.0 ea3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
JAXB 2.0: リリースノート | XJC | XJCTask | SchemaGen | schemagenTask | サンプルアプリケーション | Changelog
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
JAXB 1.0.x: リリースノート | Changelog
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
JAXB RI 拡張: 実行時プロパティ | XJC カスタマイズ | プラグイン開発
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
JAXB RI スキーマ言語: W3C XML スキーマ | RELAX NG | DTD
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
JAXB コミュニティ: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
\f2Java.net ホームページ\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
http://jaxb.dev.java.net | Developer interest list | FAQ
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
.ad l
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
xjc の起動
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
バインディングコンパイラを起動するには、使用するプラットフォームに応じた \f2bin\fP ディレクトリ内の \f2xjc\fP シェルスクリプトを使用します。また、バインディングコンパイラを実行するための Ant タスクも用意されています。xjc を Ant とともに使用するための手順を参照してください。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
\f3Solaris/Linux の場合\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
 \f2% /path/to/jaxb/bin/xjc.sh \-help\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
\f3WindowsNT/2000/XP の場合\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
 \f2> c:\\path\\to\\jaxb\\bin\\xjc.bat \-help\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
\f3出力\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
Usage: xjc [\-options ...] <schema_file/URL/dir> ... [\-b <bindinfo>] ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
Options:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
 \-nv                  : do not perform strict validation of the input schema(s)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
 \-extension           : allow vendor extensions \- do not strictly follow the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
                        Compatibility Rules and App E.2 from the JAXB Spec
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
 \-b <file>            : specify external bindings files (each <file> must have its own \-b)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
 \-d <dir>             : generated files will go into this directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
 \-p <pkg>             : specifies the target package
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
 \-httpproxy <proxy>   : set HTTP/HTTPS proxy. Format is [user[:password]@]proxyHost:proxyPort
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
 \-httpproxyfile <file>: set the proxy string (same format as above).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
 \-classpath <arg>     : specify where to find user class files
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
 \-catalog <file>      : specify catalog files to resolve external entity references
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
                        support TR9401, XCatalog, and OASIS XML Catalog format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
 \-readOnly            : generated files will be in read\-only mode
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
 \-npa                 : suppress generation of package level annotations (**/package\-info.java)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
 \-xmlschema           : treat input as W3C XML Schema (default)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
 \-relaxng             : treat input as RELAX NG (experimental,unsupported)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
 \-relaxng\-compact     : treat input as RELAX NG compact syntax (experimental,unsupported)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
 \-dtd                 : treat input as XML DTD (experimental,unsupported)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
 \-wsdl                : treat input as WSDL and compile schemas inside it (experimental,unsupported)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
 \-verbose             : be extra verbose
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
 \-quiet               : suppress compiler output
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
 \-help                : display this help message
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
 \-version             : display version information
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
.fi
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
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
\f3jaxb\-xjc.jar JAR ファイルの実行\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
ほかの方法がすべて失敗した場合でも、\f2jaxb\-xjc.jar\fP ファイルの実行は行えるはずです。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
Solaris/Linux の場合: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
\f2% java \-jar $JAXB_HOME/lib/jaxb\-xjc.jar \-help\fP 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
Windows の場合: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
\f2> java \-jar %JAXB_HOME%\\lib\\jaxb\-xjc.jar \-help\fP 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
これは「xjc.sh」や「xjc.bat」を実行するのと同じです。また、この場合、JVM パラメータを設定できます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
コマンド行オプションの概要
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
\-nv 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
デフォルトでは、XJC バインディングコンパイラは、ソーススキーマを処理する前に厳密な検証を実行します。このオプションを使用すると、厳密なスキーマ検証を無効にします。これは、バインディングコンパイラが検証を一切実行しないということではありません。より厳密でない検証を実行するということです。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
\-extension 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
デフォルトでは、XJC バインディングコンパイラは、JAXB 仕様の「Compatibility」の章で説明されている規則を厳密に強制します。付録 E.2 には、JAXB v1.0 で完全にはサポートされていない一連の W3C XML スキーマ機能が定義されています。場合によっては、このスイッチで有効になる「\-extension」モードでそれらの機能が使用できるかもしれません。また、デフォルトの厳密なモードでは、仕様に定義されているバインディングカスタマイズのみが使用できます。「\-extension」スイッチを指定すれば、JAXB Vendor Extension を使用できます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
\-b <file> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
処理する外部バインディングファイルを 1 つまたは複数指定します。(バインディングファイルごとに\f2「\-b」\fPスイッチを指定する必要があります。) 外部バインディングファイルの構文は非常に柔軟です。複数のスキーマのカスタマイズが含まれる 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
1 つのバインディングファイルを使用したり、それらのカスタマイズを複数のバインディングファイルに分割したりできます。次に例を示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
\f2xjc schema1.xsd schema2.xsd schema3.xsd \-b bindings123.xjb\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
\f2xjc schema1.xsd schema2.xsd schema3.xsd \-b bindings1.xjb \-b bindings2.xjb \-b bindings3.xjb\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
また、コマンド行にスキーマファイルとバインディングファイルを指定する順番は任意です。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
\-d <dir> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
デフォルトでは、XJC バインディングコンパイラは、Java コンテンツクラスを現在のディレクトリに生成します。このオプションを使用すると、代替出力ディレクトリを指定できます。出力ディレクトリはあらかじめ存在している必要があります。XJC バインディングコンパイラは、このディレクトリを自動的に作成しません。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
\-p <pkg> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
このコマンド行オプション経由でターゲットパッケージを指定した場合、その指定内容は、パッケージ名に対するすべてのバインディングカスタマイズや、仕様で規定されているデフォルトのパッケージ名アルゴリズムよりも優先されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
\-httpproxy <proxy> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
HTTP/HTTPS プロキシを指定します。形式は [user[:password]@]proxyHost[:proxyPort] です。従来の \f2\-host\fP および \f2\-port\fP は、下位互換性のためにリファレンス実装でもサポートされていますが、推奨されなくなりました。このオプションで指定されたパスワードは、\f2top\fP コマンドを使用するユーザーなど、ほかのユーザーが表示できる引数であることに注意してください。セキュリティを高めるには、次の \f2\-httpproxyfile\fP を使用してください。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
\-httpproxyfile <file> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
HTTP/HTTPS プロキシをファイル経由で指定します。形式は上記と同じですが、このファイル内に指定されたパスワードをほかのユーザーが表示することはできません。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
\-classpath <arg> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
\f2<jxb:javaType>\fP および \f2<xjc:superClass>\fP カスタマイズが使用するクライアントアプリケーションのクラスファイルの検索場所を指定します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
\-catalog <file> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
外部エンティティー参照を解決するカタログファイルを指定します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
TR9401、XCatalog、および OASIS XML Catalog 形式がサポートされます。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
詳細は、『XML Entity and URI Resolvers』ドキュメントを参照するか、 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
カタログリゾルバのサンプルアプリケーションを調べてください。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
\-readOnly 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
デフォルトでは、XJC バインディングコンパイラは、生成する Java ソースファイルを書き込みから保護しません。このオプションを使用すると、XJC バインディングコンパイラは生成される Java ソースを強制的に読み取り専用にします。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
\-npa 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
パッケージレベルの注釈を 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
.B **/package-info.java 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
に生成することを抑制します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
このスイッチを使用して生成するコードでは、これらの注釈が 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
ほかの生成済みクラスに内部化されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
\-xmlschema 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
入力スキーマを W3C XML スキーマ (デフォルト) と見なします。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
このスイッチを指定しなくても、入力スキーマは  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
W3C XML スキーマと見なされます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
\-relaxng 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
入力スキーマを RELAX NG として扱います (試験的、未サポート)。RELAX NG スキーマのサポートは JAXB Vendor Extension として提供されています。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
\-relaxng\-compact 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
入力スキーマを RELAX NG 圧縮構文として処理します (試験的、未サポート)。RELAX NG スキーマのサポートは JAXB Vendor Extension として提供されています。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
\-dtd 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
入力スキーマを XML DTD として扱います (試験的、未サポート)。RELAX NG スキーマのサポートは JAXB Vendor Extension として提供されています。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
\-wsdl 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
入力を WSDL として扱い、その内部のスキーマをコンパイルします (試験的、未サポート)。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
\-quiet 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
進捗や警告など、コンパイラの出力を抑制します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
\-verbose 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
情報メッセージを出力したり特定のエラー発生時にスタックトレースを表示したりするなど、極めて冗長になります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
\-help 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
コンパイラスイッチの概要を表示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
\-version 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
コンパイラのバージョン情報を表示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
<schema file/URL/dir> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
コンパイル対象となる 1 つまたは複数のスキーマファイルを指定します。ユーザーがディレクトリを指定した場合、xjc はそのディレクトリを走査し、そこで見つかったすべてのスキーマファイルをコンパイルします。    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
非推奨コマンド行オプションおよび削除されたコマンド行オプションの概要
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
\-host & \-port 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
これらのオプションは非推奨となり、\f3\-httpproxy\fP オプションで置き換えられました。これらのオプションは、下位互換性を確保する目的で引き続きサポートされますが、ドキュメントには記載されず、将来のリリースで削除される可能性もあります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
\-use\-runtime 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
JAXB 2.0 仕様で移植性のあるランタイムが規定されたため、JAXB RI が **/impl/runtime パッケージを生成する必要がなくなりました。このため、このスイッチは不要となり、削除されました。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
\-source 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
\-source 互換性スイッチは、JAXB 2.0 の最初の Early Access 版で導入されました。我々は、JAXB 2.0 の今後のリリースからこのスイッチを削除することにしました。1.0.x コードを生成する必要がある場合には、1.0.x コードベースのインストールを使用してください。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
\-Xlocator & \-Xsync\-methods 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
これらのスイッチは現時点では無効化されています。この機能は将来、個別のダウンロードとして提供される予定です。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
コンパイラの制限
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
通常は、関連するスキーマは、同じバインディングコンパイラスイッチを指定して 1 つの単位としてコンパイルするのがもっとも安全です。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
.B xjc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
を実行するときは、次に示す制限に注意してください。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
これらの制限のほとんどは、 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
.B xjc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
を何度か呼び出して複数のスキーマをコンパイルする場合にのみ適用されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
複数のスキーマを同時にコンパイルする場合は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
ターゲットの Java パッケージ名に次の優先順位の規則が
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
適用されることに注意してください。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
1.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
「\f2\-p\fP」コマンド行オプションがもっとも優先されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
2.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
<\f2jaxb:package\fP> のカスタマイズ
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
3.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
\f2targetNamespace\fP が宣言されている場合は、仕様に定義されている \f2targetNamespace\fP \-> Java パッケージ名のアルゴリズムを適用します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
4.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
\f2targetNamespace\fP が宣言されていない場合は、"generated" という名前のハードコードされたパッケージを使用します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
名前空間ごとに複数の
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
.B <jaxb:schemaBindings>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
を持つことは不正です。このため、1 つのターゲット名前空間内の  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
2 つのスキーマを、異なる Java パッケージにコンパイルすることはできません。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
1 つの Java パッケージにコンパイルされるすべてのスキーマは、 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
XJC バインディングコンパイラに同時に送信する必要があります。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
個別にコンパイルすることはできず、 予期したとおりに動作しません。
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
複数のスキーマファイルにまたがる要素置換グループは、同時にコンパイルする必要があります。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
$Revision: 1.4 $
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
$Date: 2005/10/27 18:53:02 $
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326