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