jdk/src/solaris/doc/sun/man/man1/ja/schemagen.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
." Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
." This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
." under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
." published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
." This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
." FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
." version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
." accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
." You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
." 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
." Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
." CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
." have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
." ` 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
.TH schemagen 1 "2006 年 9 月 4 日" "Java SE 6" "ユーザーコマンド"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
." Generated by html2roff
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
.ad c
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
.SH 名前
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
XML バインドのための Java(TM) アーキテクチャ
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
スキーマジェネレータ\f3仕様のバージョン:\fP 2.0
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
\f3リファレンス実装 (Reference Implementation、RI) のバージョン:\fP 2.0 ea3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
.ad l
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
schemagen の起動
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
スキーマジェネレータは、ユーザーのプラットフォームの \f2bin\fP ディレクトリにある \f2schemagen\fP シェルスクリプトを使って起動できます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
現在のスキーマジェネレータは、Java ソースファイルとクラスファイルのいずれも処理できます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
また、スキーマジェネレータを実行するための Ant タスクも用意されています。schemagen を Ant とともに使用するための手順を参照してください。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
\f3Solaris/Linux の場合\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
      % path/to/jaxb/bin/schemagen.sh Foo.java Bar.java ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
      Note: Writing schema1.xsd
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
      
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
.fi
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
\f3WindowsNT/2000/XP の場合\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
      > path\\to\\jaxb\\bin\\schemagen.bat Foo.java Bar.java ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
      Note: Writing schema1.xsd
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
      
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
ユーザの Java ソース/クラスがほかのクラスを参照している場合、システムの CLASSPATH 環境変数経由でそれらのクラスにアクセスできるようになっているか、あるいは \f2\-classpath\fP/\f2\-cp\fP オプションを使ってそれらのクラスをツールに指定する必要があります。そうしないと、スキーマの生成時にエラーが発生します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
\f3コマンド行オプション\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
使用法: schemagen [\-options ...] <java files> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
オプション: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
    \-d <path>         :  プロセッサおよび javac によって生成されるクラスファイルの格納場所を指定します
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
    \-cp <path>        :  ユーザ指定ファイルの検索場所を指定します
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
    \-classpath <path> :  ユーザ指定ファイルの検索場所を指定します
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
    \-help             :  この使用方法に関するメッセージを表示します
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
生成されるリソースファイル
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
現在のスキーマジェネレータは単純に、Java クラス内で参照されている名前空間ごとに 1 つのスキーマファイルを作成します。生成されるスキーマファイルの名前を制御する方法は、現時点では存在しません。そうした目的には、スキーマジェネレータの ant タスクを使用してください。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123