Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私の要件は、非常に大きなスキーマがあり、さまざまな名前空間を持つさまざまなタグが多数あることです。そのスキーマから別のパッケージにクラスを生成したいのですが、これを名前空間に基づいて作成したいです。つまり、1 つの名前空間のタグに対応するクラスを 1 つのパッケージに入れ、別の名前空間のタグに対応するクラスを別の名前で存在させたいのです。スペース。Ant タスクで上記の機能を実行したい
実際、これは通常の JAXB の動作です。XJC は名前空間 URI ( http://www.acme.com/foo-> com.acme.foo) からパッケージを派生させます。
http://www.acme.com/foo
com.acme.foo
Ant の「注文書」プロジェクトのサンプルを次に示します。
http://confluence.highsource.org/display/J2B/Downloads