jdk/src/linux/doc/man/ja/xjc.1
author tbell
Mon, 04 May 2009 18:28:26 -0700
changeset 2692 345bc8d65b19
parent 2 90ce3da70b43
child 5506 202f599c92aa
permissions -rw-r--r--
6837214: Update JDK7 man pages Reviewed-by: darcy, bpatel, tbell Contributed-by: jacob.royal@sun.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
." Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
." This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
." under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
." published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
." This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
." FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
." version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
." accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
." You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
." 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
." Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
." CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
." have any questions.
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    21
."
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    22
.TH xjc 1 "04 May 2009"
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    23
." Generated from HTML by html2man (author: Eric Armstrong)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
.ad c
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    27
.SH "名前"
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    28
xjc \- XML バインドのための Java(TM) アーキテクチャー
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
.br
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    30
バインディングコンパイラ 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    31
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    32
\f3仕様バージョン:\fP 2.1
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
.br
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    34
\f3リファレンス実装 (RI) バージョン:\fP 2.1.3 .ad l
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    37
.SH "xjc の起動"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    40
バインディングコンパイラを起動するには、使用するプラットフォームに応じた \f2bin\fP ディレクトリ内の \f2xjc\fP シェルスクリプトを使用します。また、バインディングコンパイラを実行するための Ant タスクも用意されています。 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    41
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    42
\f2xjc を Ant とともに使用する\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    43
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    44
https://jaxb.dev.java.net/nonav/2.1.3/docs/xjcTask.htmlための手順を参照してください。
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    50
\f2% xjc \-help\fP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
.RE
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    53
\f3出力\fP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    55
.RS 3
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
Usage: xjc [\-options ...] <schema_file/URL/dir> ... [\-b <bindinfo>] ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
Options:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
 \-nv                  : do not perform strict validation of the input schema(s)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
 \-extension           : allow vendor extensions \- do not strictly follow the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
                        Compatibility Rules and App E.2 from the JAXB Spec
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    71
 \-b <file/dir>        : specify external bindings files (each <file> must have its own \-b)
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    72
.fl
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    73
                        If a directory is given, **/*.xjb is searched
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
 \-d <dir>             : generated files will go into this directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
 \-p <pkg>             : specifies the target package
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
 \-httpproxy <proxy>   : set HTTP/HTTPS proxy. Format is [user[:password]@]proxyHost:proxyPort
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
 \-httpproxyfile <file>: set the proxy string (same format as above).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
 \-classpath <arg>     : specify where to find user class files
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
 \-catalog <file>      : specify catalog files to resolve external entity references
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
                        support TR9401, XCatalog, and OASIS XML Catalog format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
 \-readOnly            : generated files will be in read\-only mode
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
 \-npa                 : suppress generation of package level annotations (**/package\-info.java)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    93
 \-no\-header           : suppress generation of a file header with timestamp
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    94
.fl
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    95
 \-target 2.0          : behave like XJC 2.0 and generate code that doesnt use any 2.1 features.
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    96
.fl
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
 \-xmlschema           : treat input as W3C XML Schema (default)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
 \-relaxng             : treat input as RELAX NG (experimental,unsupported)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
 \-relaxng\-compact     : treat input as RELAX NG compact syntax (experimental,unsupported)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
 \-dtd                 : treat input as XML DTD (experimental,unsupported)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
 \-wsdl                : treat input as WSDL and compile schemas inside it (experimental,unsupported)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
 \-verbose             : be extra verbose
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
 \-quiet               : suppress compiler output
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
 \-help                : display this help message
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
 \-version             : display version information
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   117
.RE
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   120
.SH "オプション"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
\-nv 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   127
デフォルトでは、XJC バインディングコンパイラは、ソーススキーマを処理する前に厳密な検証を実行します。このオプションを使用すると、厳密なスキーマ検証を無効にします。これは、バインディングコンパイラが検証を一切実行しないということではありません。 より厳密でない検証を実行するということです。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
\-extension 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   130
デフォルトでは、XJC バインディングコンパイラは、JAXB 仕様の「Compatibility」の章で説明されている規則を厳密に強制します。付録 E.2 には、JAXB v1.0 で完全にはサポートされていない一連の W3C XML スキーマ機能が定義されています。 場合によっては、このスイッチで有効になる「\-extension」モードでそれらの機能が使用できるかもしれません。また、デフォルトの厳密なモードでは、仕様に定義されているバインディングカスタマイズのみが使用できます。「\-extension」スイッチを指定すれば、JAXB Vendor Extension を使用できます。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
\-b <file> 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   133
処理する外部バインディングファイルを 1 つまたは複数指定します。(バインディングファイルごとに「\f2\-b\fP」スイッチを指定する必要があります。)外部バインディングファイルの構文は非常に柔軟です。複数のスキーマのカスタマイズが含まれる 1 つのバインディングファイルを使用したり、それらのカスタマイズを複数のバインディングファイルに分割したりできます。 次に例を示します。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
\f2xjc schema1.xsd schema2.xsd schema3.xsd \-b bindings123.xjb\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
\f2xjc schema1.xsd schema2.xsd schema3.xsd \-b bindings1.xjb \-b bindings2.xjb \-b bindings3.xjb\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
.RE
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   141
また、コマンド行にスキーマファイルとバインディングファイルを指定する順番は任意です。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
\-d <dir> 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   144
デフォルトでは、XJC バインディングコンパイラは、Java コンテンツクラスを現在のディレクトリに生成します。このオプションを使用すると、代替出力ディレクトリを指定できます。出力ディレクトリはあらかじめ存在している必要があります。 XJC バインディングコンパイラは、このディレクトリを自動的に作成しません。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
\-p <pkg> 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   147
このコマンド行オプション経由でターゲットパッケージを指定した場合、その指定内容は、パッケージ名に対するすべてのバインディングカスタマイズや、仕様で規定されているデフォルトのパッケージ名アルゴリズムよりも優先されます。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
\-httpproxy <proxy> 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   150
HTTP/HTTPS プロキシを指定します。形式は [user[:password]@]proxyHost[:proxyPort] です。従来の \f2\-host\fP および \f2\-port\fP は、下位互換性のためにリファレンス実装でもサポートされていますが、推奨されなくなりました。このオプションで指定されたパスワードは、\f2top\fP コマンドを使用するユーザーなど、ほかのユーザーが表示できる引数であることに注意してください。セキュリティーを高めるには、次の \f2\-httpproxyfile\fP を使用してください。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
\-httpproxyfile <file> 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   153
HTTP/HTTPS プロキシをファイル経由で指定します。形式は上記と同じですが、このファイル内に指定されたパスワードをほかのユーザーが表示することはできません。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
\-classpath <arg> 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   156
\f2<jxb:javaType>\fP および \f2<xjc:superClass>\fP カスタマイズが使用するクライアントアプリケーションのクラスファイルの検索場所を指定します。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
\-catalog <file> 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   159
外部エンティティー参照を解決するカタログファイルを指定します。TR9401、XCatalog、および OASIS XML Catalog 形式がサポートされます。詳細は、『XML Entity and URI Resolvers』ドキュメントを参照するか、\f2カタログリゾルバ\fPのサンプルアプリケーションを調べてください。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
\-readOnly 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   162
デフォルトでは、XJC バインディングコンパイラは、生成する Java ソースファイルを書き込みから保護しません。このオプションを使用すると、XJC バインディングコンパイラは生成される Java ソースを強制的に読み取り専用にします。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
\-npa 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   165
パッケージレベルの注釈を **/package\-info.java に生成することを抑制します。このスイッチを使用して生成するコードでは、これらの注釈がほかの生成済みクラスに内部化されます。 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   166
.TP 3
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   167
\-no\-header 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   168
多少のメモとタイムスタンプを含むファイルヘッダーコメントの生成を抑制します。このオプションを使用すると、生成されたコードがわかりにくくなります。 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   169
.TP 3
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   170
\-target 2.0 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   171
なんらかの JAXB 2.1 機能に依存するコードを生成しないようにします。これにより、生成されたコードを JAXB 2.0 ランタイム (JavaSE 6 など) で実行できます。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
\-xmlschema 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   174
入力スキーマを W3C XML スキーマ (デフォルト) と見なします。このスイッチを指定しなくても、入力スキーマは W3C XML スキーマと見なされます。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
\-relaxng 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   177
入力スキーマを RELAX NG として扱います (試験的、未サポート)。RELAX NG スキーマのサポートは JAXB Vendor Extension として提供されています。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
\-relaxng\-compact 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   180
入力スキーマを RELAX NG 圧縮構文として処理します (試験的、未サポート)。RELAX NG スキーマのサポートは JAXB Vendor Extension として提供されています。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
\-dtd 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   183
入力スキーマを XML DTD として扱います (試験的、未サポート)。RELAX NG スキーマのサポートは JAXB Vendor Extension として提供されています。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
\-wsdl 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   186
入力を WSDL として扱い、その内部のスキーマをコンパイルします (試験的、未サポート)。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
\-quiet 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   189
進捗情報や警告など、コンパイラの出力を抑制します。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
\-verbose 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   192
情報メッセージを出力したり特定のエラー発生時にスタックトレースを表示したりするなど、極めて冗長になります。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
\-help 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   195
コンパイラスイッチの概要を表示します。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
\-version 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   198
コンパイラのバージョン情報を表示します。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
<schema file/URL/dir> 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   201
コンパイル対象となる 1 つまたは複数のスキーマファイルを指定します。ユーザーがディレクトリを指定した場合、xjc はそのディレクトリを走査し、そこで見つかったすべてのスキーマファイルをコンパイルします。 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   202
.RE
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
.SS 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   204
非推奨コマンド行オプションおよび削除されたコマンド行オプションの概要
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   206
.RS 3
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   209
.RS 3
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
\-host & \-port 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   212
これらのオプションは非推奨となり、\f3\-httpproxy\fP オプションで置き換えられました。これらのオプションは、下位互換性を確保する目的で引き続きサポートされますが、ドキュメントには記載されず、将来のリリースで削除される可能性もあります。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
\-use\-runtime 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   215
JAXB 2.0 仕様で移植性のあるランタイムが規定されたため、JAXB RI が **/impl/runtime パッケージを生成する必要がなくなりました。このため、このスイッチは不要となり、削除されました。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
\-source 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   218
\-source 互換性スイッチは、JAXB 2.0 の最初の Early Access 版で導入されました。このスイッチは、JAXB 2.0 の今後のリリースから削除されることになりました。1.0.x コードを生成する必要がある場合には、1.0.x コードベースのインストールを使用してください。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
\-Xlocator & \-Xsync\-methods 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   221
これらのスイッチは現時点では無効化されています。この機能は将来、個別のダウンロードとして提供される予定です。 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   222
.RE
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   223
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   225
.RE
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
.SS 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   227
コンパイラの制限
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   230
通常は、関連するすべてのスキーマを、同じバインディングコンパイラスイッチを指定して 1 つの単位としてコンパイルするのがもっとも安全です。
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   233
xjc を実行するときは、次に示す制限に注意してください。これらの制限のほとんどは、xjc を何度か呼び出して複数のスキーマをコンパイルする場合にのみ適用されます。
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
.TP 2
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   237
o
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   238
複数のスキーマを同時にコンパイルする場合は、ターゲットの Java パッケージ名に次の優先順位の規則が適用されることに注意してください。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
1.
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   242
「\f2\-p\fP」コマンド行オプションがもっとも優先されます。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
2.
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   245
<\f2jaxb:package\fP> のカスタマイズ 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
3.
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   248
\f2targetNamespace\fP が宣言されている場合は、仕様に定義されている \f2targetNamespace\fP \-> Java パッケージ名のアルゴリズムを適用します。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
4.
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   251
\f2targetNamespace\fP が宣言されていない場合は、"generated" という名前のハードコードされたパッケージを使用します。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
.TP 2
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   254
o
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   255
名前空間ごとに複数の <\f2jaxb:schemaBindings\fP> を持つことは不正です。 このため、1 つのターゲット名前空間内の 2 つのスキーマを、異なる Java パッケージにコンパイルすることはできません。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
.TP 2
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   257
o
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   258
1 つの Java パッケージにコンパイルされるすべてのスキーマは、XJC バインディングコンパイラに同時に送信する必要があります。 個別にコンパイルすることはできず、予期したとおりに動作しません。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
.TP 2
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   260
o
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   261
複数のスキーマファイルにまたがる要素置換グループは、同時にコンパイルする必要があります。 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   265
.SH "関連項目"
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   266
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   267
.RS 3
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   268
.TP 2
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   269
o
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   270
コマンド行でのコンバータの実行 (XJC):[
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   271
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   272
\f2コマンド行の命令\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   273
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   274
https://jaxb.dev.java.net/nonav/2.1.3/docs/xjc.html、
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   275
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   276
\f2xjc を Ant とともに使用する\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   277
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   278
https://jaxb.dev.java.net/nonav/2.1.3/docs/xjcTask.html] 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   279
.TP 2
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   280
o
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   281
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   282
\f2XML バインドのための JavaTM アーキテクチャー (JAXB)\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   283
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   284
http://java.sun.com/javase/6/docs/technotes/guides/xml/jaxb/index.html 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   285
.RE
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288