5865
|
1 |
." Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
|
2
|
2 |
." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
3 |
."
|
|
4 |
." This code is free software; you can redistribute it and/or modify it
|
|
5 |
." under the terms of the GNU General Public License version 2 only, as
|
|
6 |
." published by the Free Software Foundation.
|
|
7 |
."
|
|
8 |
." This code is distributed in the hope that it will be useful, but WITHOUT
|
|
9 |
." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
10 |
." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
11 |
." version 2 for more details (a copy is included in the LICENSE file that
|
|
12 |
." accompanied this code).
|
|
13 |
."
|
|
14 |
." You should have received a copy of the GNU General Public License version
|
|
15 |
." 2 along with this work; if not, write to the Free Software Foundation,
|
|
16 |
." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
17 |
."
|
5506
|
18 |
." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
19 |
." or visit www.oracle.com if you need additional information or have any
|
|
20 |
." questions.
|
2692
|
21 |
."
|
9352
|
22 |
.TH schemagen 1 "14 Apr 2011"
|
2
|
23 |
|
|
24 |
.LP
|
9352
|
25 |
.SH "名前"
|
|
26 |
schemagen \- XML バインドのための Java(TM) アーキテクチャースキーマジェネレータ
|
2692
|
27 |
.LP
|
|
28 |
.LP
|
9352
|
29 |
\f3仕様バージョン:\fP 2.1
|
|
30 |
.br
|
|
31 |
\f3実装バージョン:\fP 2.1.3
|
2
|
32 |
.LP
|
9352
|
33 |
.SH "schemagen の起動"
|
2
|
34 |
.LP
|
|
35 |
.LP
|
9352
|
36 |
スキーマジェネレータを起動するには、ユーザーのプラットフォームの bin ディレクトリ内にある \f2適切な schemagen シェルスクリプト\fP を使用 \f2します\fP 。
|
|
37 |
.LP
|
|
38 |
.LP
|
|
39 |
現在のスキーマジェネレータは、Java ソースファイルとクラスファイルのいずれも処理できます。
|
|
40 |
.LP
|
|
41 |
.LP
|
|
42 |
また、スキーマジェネレータを実行するための Ant タスクも用意されています。
|
2692
|
43 |
.na
|
9352
|
44 |
\f2schemagen を Ant とともに使用する\fP @
|
2692
|
45 |
.fi
|
9352
|
46 |
https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.htmlための手順を参照してください。
|
2
|
47 |
.LP
|
|
48 |
.nf
|
|
49 |
\f3
|
|
50 |
.fl
|
2692
|
51 |
% schemagen.sh Foo.java Bar.java ...
|
2
|
52 |
.fl
|
9352
|
53 |
Note: Writing schema1.xsd
|
2
|
54 |
.fl
|
|
55 |
\fP
|
|
56 |
.fi
|
|
57 |
|
|
58 |
.LP
|
|
59 |
.LP
|
9352
|
60 |
ユーザーの Java ソース/クラスがほかのクラスを参照している場合、システムの 環境変数経由でそれらのクラスにアクセスできるようになっているか、あるいは \f2\-classpath\fP/\f2\-cp\fP を使ってそれらのクラスをツールに指定する必要があります。そうしないと、スキーマの生成時にエラーが発生します。
|
2
|
61 |
.LP
|
9352
|
62 |
.SS
|
|
63 |
コマンド行オプション
|
2
|
64 |
.LP
|
|
65 |
.nf
|
|
66 |
\f3
|
|
67 |
.fl
|
9352
|
68 |
使用方法: schemagen [\-options ...] <java files>
|
2
|
69 |
.fl
|
|
70 |
|
|
71 |
.fl
|
9352
|
72 |
オプション:
|
|
73 |
.fl
|
|
74 |
\-d <path> : プロセッサおよび javac によって生成されるクラスファイルの格納場所を指定します。
|
2
|
75 |
.fl
|
9352
|
76 |
\-cp <path> : ユーザー指定ファイルの検索場所を指定します。
|
|
77 |
.fl
|
|
78 |
\-classpath <path> : ユーザー指定ファイルの検索場所を指定します。
|
2
|
79 |
.fl
|
9352
|
80 |
\-encoding <encoding> : apt/javac 呼び出しに使用されるエンコーディングを指定します。
|
|
81 |
.fl
|
|
82 |
|
2
|
83 |
.fl
|
9352
|
84 |
\-episode <file> : 個別コンパイル用のエピソードファイルを生成します。
|
2
|
85 |
.fl
|
9352
|
86 |
\-version : バージョン情報を表示します。
|
|
87 |
.fl
|
|
88 |
\-help : この使用方法に関するメッセージを表示します。
|
2
|
89 |
.fl
|
|
90 |
\fP
|
|
91 |
.fi
|
|
92 |
|
|
93 |
.LP
|
9352
|
94 |
.SH "生成されるリソースファイル"
|
2
|
95 |
.LP
|
|
96 |
.LP
|
9352
|
97 |
現在のスキーマジェネレータは単純に、Java クラス内で参照されている名前空間ごとに 1 つのスキーマファイルを作成します。生成されるスキーマファイルの名前を制御する方法は、現時点では存在しません。そうした目的には、
|
2692
|
98 |
.na
|
9352
|
99 |
\f2スキーマジェネレータの ant タスク\fP @
|
2692
|
100 |
.fi
|
9352
|
101 |
https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.htmlを使用してください。
|
2692
|
102 |
.LP
|
9352
|
103 |
.SH "名前"
|
|
104 |
関連項目
|
2692
|
105 |
.LP
|
|
106 |
.RS 3
|
|
107 |
.TP 2
|
|
108 |
o
|
9352
|
109 |
スキーマジェネレータの実行 (schemagen): [
|
2692
|
110 |
.na
|
9352
|
111 |
\f2コマンド行の命令\fP @
|
2692
|
112 |
.fi
|
9352
|
113 |
https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagen.html、
|
2692
|
114 |
.na
|
9352
|
115 |
\f2SchemaGen を Ant とともに使用する\fP @
|
2692
|
116 |
.fi
|
|
117 |
https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html]
|
|
118 |
.TP 2
|
|
119 |
o
|
|
120 |
.na
|
9352
|
121 |
\f2XML バインドのための JavaTM アーキテクチャー (JAXB)\fP @
|
2692
|
122 |
.fi
|
|
123 |
http://java.sun.com/javase/6/docs/technotes/guides/xml/jaxb/index.html
|
|
124 |
.RE
|
|
125 |
|
2
|
126 |
.LP
|
|
127 |
|