xjc.1 revision 4935
0N/A." Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
0N/A." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A."
3909N/A." This code is free software; you can redistribute it and/or modify it
0N/A." under the terms of the GNU General Public License version 2 only, as
0N/A." published by the Free Software Foundation.
0N/A."
0N/A." This code is distributed in the hope that it will be useful, but WITHOUT
0N/A." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A." version 2 for more details (a copy is included in the LICENSE file that
0N/A." accompanied this code).
0N/A."
0N/A." You should have received a copy of the GNU General Public License version
0N/A." 2 along with this work; if not, write to the Free Software Foundation,
0N/A." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2362N/A."
0N/A." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
0N/A." or visit www.oracle.com if you need additional information or have any
0N/A." questions.
0N/A."
0N/A.TH xjc 1 "21 Mar 2012"
0N/A
0N/A.LP
0N/A.SH "̾��"
0N/Axjc \- XML�Х���ɤΤ����Java(tm)�������ƥ�����
0N/A.br
0N/A�Х���ǥ��󥰡�����ѥ���
0N/A.LP
0N/A.LP
0N/A\f3���ͥС������:\fP 2.1
0N/A.br
0N/A\f3��ե���󥹼���(RI)�С������:\fP 2.1.3
3492N/A.LP
0N/A.SH "xjc�ε�ư"
0N/A.LP
0N/A.LP
0N/A�Х���ǥ��󥰡�����ѥ����ư����ˤϡ����Ѥ���ץ�åȥե�����˱�����\f2bin\fP�ǥ��쥯�ȥ����\f2xjc\fP�����롦������ץȤ���Ѥ��ޤ����ޤ����Х���ǥ��󥰡�����ѥ����¹Ԥ��뤿���Ant���������Ѱդ���Ƥ��ޤ���
0N/A.na
3492N/A\f2XJC Ant���������\fP @
0N/A.fi
0N/Ahttps://jaxb.dev.java.net/nonav/2.1.3/docs/xjcTask.html�μ��򻲾Ȥ��Ƥ���������
.LP
.LP
\f2% xjc \-help\fP
.LP
.SS
����
.LP
.nf
\f3
.fl
Usage: xjc [\-options ...] <schema file/URL/dir/jar> ... [\-b <bindinfo>] ...
.fl
If dir is specified, all schema files in it will be compiled.
.fl
If jar is specified, /META\-INF/sun\-jaxb.episode binding file will be compiled.
.fl
Options:
.fl
\-nv : do not perform strict validation of the input schema(s)
.fl
\-extension : allow vendor extensions \- do not strictly follow the Compatibility Rules and App E.2 from the JAXB Spec
.fl
\-b <file/dir> : specify external bindings files (each <file> must have its own \-b); if a directory is given, **/*.xjb is searched
.fl
\-d <dir> : generated files will go into this directory
.fl
\-p <pkg> : specifies the target package
.fl
\-httpproxy <proxy> : set HTTP/HTTPS proxy; format is [user[:password]@]proxyHost:proxyPort
.fl
\-httpproxyfile <f> : works like \-httpproxy but takes the argument in a file to protect password
.fl
\-classpath <arg> : specify where to find user class files
.fl
\-catalog <file> : specify catalog files to resolve external entity references; support TR9401, XCatalog, and OASIS XML Catalog format
.fl
\-readOnly : generated files will be in read\-only mode
.fl
\-npa : suppress generation of package level annotations (**/package\-info.java)
.fl
\-no\-header : suppress generation of a file header with timestamp
.fl
\-target 2.0 : behave like XJC 2.0 and generate code that doesnt use any 2.1 features
.fl
\-xmlschema : treat input as W3C XML Schema (default)
.fl
\-relaxng : treat input as RELAX NG (experimental,unsupported)
.fl
\-relaxng\-compact : treat input as RELAX NG compact syntax (experimental,unsupported)
.fl
\-dtd : treat input as XML DTD (experimental,unsupported)
.fl
\-wsdl : treat input as WSDL and compile schemas inside it (experimental,unsupported)
.fl
\-verbose : be extra verbose
.fl
\-quiet : suppress compiler output
.fl
\-help : display this help message
.fl
\-version : display version information
.fl
.fl
.fl
Extensions:
.fl
\-Xlocator : enable source location support for generated code
.fl
\-Xsync\-methods : generate accessor methods with the 'synchronized' keyword
.fl
\-mark\-generated : mark the generated code as @javax.annotation.Generated
.fl
\-episode <FILE> : generate the episode file for separate compilation
.fl
\fP
.fi
.LP
.SH "���ץ����"
.LP
.RS 3
.TP 3
\-nv
�ǥե���ȤǤϡ�XJC�Х���ǥ��󥰡�����ѥ���ϡ����������������ޤ��������˸�̩�ʸ��ڤ�¹Ԥ��ޤ������Υ��ץ�������Ѥ���ȡ���̩�ʥ������޸��ڤ�̵��ˤʤ�ޤ�������ϡ��Х���ǥ��󥰡�����ѥ��餬���ڤ���ڼ¹Ԥ��ʤ��Ȥ������ȤǤϤ���ޤ��󡣤�긷̩�Ǥʤ����ڤ�¹Ԥ���Ȥ������ȤǤ���
.TP 3
\-extension
�ǥե���ȤǤϡ�XJC�Х���ǥ��󥰡�����ѥ���ϡ�JAXB���ͤ�Compatibility�ξϤ���������Ƥ���롼���̩�˶������ޤ�����ϿE.2�ˤϡ�JAXB v1.0�Ǵ����ˤϥ��ݡ��Ȥ���Ƥ��ʤ���Ϣ��W3C XML�������޵�ǽ���������Ƥ��ޤ������ˤ�äƤϡ����Υ����å���ͭ��ˤʤ��\-extension�ץ⡼�ɤǤ����ε�ǽ�����ѤǤ����礬����ޤ����ޤ����ǥե���Ȥθ�̩�ʥ⡼�ɤǤϡ����ͤ��������Ƥ���Х���ǥ��󥰡��������ޥ����Τߤ����ѤǤ��ޤ�����\-extension�ץ����å�����ꤹ��С�JAXB Vendor Extension����ѤǤ��ޤ���
.TP 3
\-b <file>
����볰���Х���ǥ��󥰡��ե������1�Ĥޤ���ʣ�����ꤷ�ޤ���(�Х���ǥ��󥰡��ե����뤴�Ȥ�\f2��\-b��\fP�����å�����ꤹ��ɬ�פ�����ޤ���)�����Х���ǥ��󥰡��ե�����ι�ʸ�����˽���Ǥ���ʣ���Υ������ޤΥ������ޥ������ޤޤ��1�ĤΥХ���ǥ��󥰡��ե��������Ѥ����ꡢ�����Υ������ޥ�����ʣ���ΥХ���ǥ��󥰡��ե������ʬ�䤷����Ǥ��ޤ���������򼨤��ޤ���\f2xjc schema1.xsd schema2.xsd schema3.xsd \-b bindings123.xjb\fP
.br
\f2xjc schema1.xsd schema2.xsd schema3.xsd \-b bindings1.xjb \-b bindings2.xjb \-b bindings3.xjb\fP�ޤ������ޥ�ɥ饤��˥������ޡ��ե�����ȥХ���ǥ��󥰡��ե��������ꤹ����֤�Ǥ�դǤ���
.TP 3
\-d <dir>
�ǥե���ȤǤϡ�XJC�Х���ǥ��󥰡�����ѥ���ϡ�Java����ƥ�ġ����饹�򸽺ߤΥǥ��쥯�ȥ���������ޤ������Υ��ץ�������Ѥ���ȡ����ؽ��ϥǥ��쥯�ȥ�����Ǥ��ޤ������ϥǥ��쥯�ȥ�Ϥ��餫����¸�ߤ��Ƥ���ɬ�פ�����ޤ���XJC�Х���ǥ��󥰡�����ѥ���ϡ����Υǥ��쥯�ȥ��ưŪ�˺������ޤ���
.TP 3
\-p <pkg>
���Υ��ޥ�ɥ饤�󡦥��ץ�����ͳ�ǥ������åȡ��ѥå���������ꤷ����硢���λ������Ƥϡ��ѥå�����̾���Ф��뤹�٤ƤΥХ���ǥ��󥰡��������ޥ����䡢���ͤǵ��ꤵ��Ƥ���ǥե���ȤΥѥå�����̾���르�ꥺ�����ͥ�褵��ޤ���
.TP 3
\-httpproxy <proxy>
HTTP/HTTPS�ץ?������ꤷ�ޤ���������[user[:password]@]proxyHost[:proxyPort]�Ǥ��������\f2\-host\fP�����\f2\-port\fP�ϡ����̸ߴ����Τ���˥�ե���󥹼���(RI)�Ǥϥ��ݡ��Ȥ���Ƥ��ޤ������侩����ʤ��ʤ�ޤ��������Υ��ץ����ǻ��ꤵ�줿�ѥ���ɤϡ�\f2top\fP���ޥ�ɤ���Ѥ���桼�����ʤɡ�¾�Υ桼������ɽ���Ǥ������Ǥ��뤳�Ȥ���դ��Ƥ����������������ƥ������ˤϡ�����\f2\-httpproxyfile\fP����Ѥ��Ƥ���������
.TP 3
\-httpproxyfile <file>
HTTP/HTTPS�ץ?����ե������ͳ�ǻ��ꤷ�ޤ������������ҤΤ�Τ�Ʊ���Ǥ��������Υե�������˻��ꤵ�줿�ѥ���ɤ�¾�Υ桼������ɽ�����뤳�ȤϤǤ��ޤ���
.TP 3
\-classpath <arg>
\f2<jxb:javaType>\fP�����\f2<xjc:superClass>\fP�������ޥ��������Ѥ��륯�饤����ȡ����ץꥱ�������Υ��饹���ե�����θ���������ꤷ�ޤ���
.TP 3
\-catalog <file>
��������ƥ��ƥ����Ȥ��褹�륫���?���ե��������ꤷ�ޤ���TR9401��XCatalog�����OASIS XML Catalog���������ݡ��Ȥ���ޤ����ܺ٤ϡ�XML Entity and URI Resolvers�Υɥ�����Ȥ򻲾Ȥ��뤫��\f2catalog\-resolver\fP����ץ롦���ץꥱ��������Ĵ�٤Ƥ���������
.TP 3
\-readOnly
�ǥե���ȤǤϡ�XJC�Х���ǥ��󥰡�����ѥ���ϡ���������Java���������ե���������ߤ����ݸ�ޤ��󡣤��Υ��ץ�������Ѥ���ȡ�XJC�Х���ǥ��󥰡�����ѥ�������������Java����������Ū���ɼ�����Ѥˤ��ޤ���
.TP 3
\-npa
�ѥå���������٥������**/package\-info.java���������뤳�Ȥ��������ޤ������Υ����å�����Ѥ����������륳���ɤǤϡ���������᤬¾�������Ѥߥ��饹������������ޤ���
.TP 3
\-no\-header
¿���Υ��ȥ����ॹ����פ�ޤ�ե����롦�إå����������Ȥ��������������ޤ����������Ѥ���ȡ��������줿�����ɤ�diff����Ѥ��䤹���ʤ�ޤ���
.TP 3
\-target 2.0
JAXB 2.1��ǽ�˰�¸���륳���ɤ��������ʤ��褦�ˤ��ޤ�������ˤ�ꡢ�������줿�����ɤ�JAXB 2.0��󥿥���(JavaSE 6�ʤ�)�Ǽ¹ԤǤ���褦�ˤʤ�ޤ���
.TP 3
\-xmlschema
���ϥ������ޤ�W3C XML�������ޤȤ��ư����ޤ�(�ǥե����)�����Υ����å�����ꤷ�ʤ��Ƥ⡢���ϥ������ޤ�W3C XML�������ޤȸ��ʤ���ޤ���
.TP 3
\-relaxng
���ϥ������ޤ�RELAX NG�Ȥ��ư����ޤ�(�Ū��̤���ݡ���)��RELAX NG�������ޤΥ��ݡ��Ȥ�JAXB Vendor Extension�Ȥ����󶡤���Ƥ��ޤ���
.TP 3
\-relaxng\-compact
���ϥ������ޤ�RELAX NG���̹�ʸ�Ȥ��ƽ���ޤ�(�Ū��̤���ݡ���)��RELAX NG�������ޤΥ��ݡ��Ȥ�JAXB Vendor Extension�Ȥ����󶡤���Ƥ��ޤ���
.TP 3
\-dtd
���ϥ������ޤ�XML DTD�Ȥ��ư����ޤ�(�Ū��̤���ݡ���)��RELAX NG�������ޤΥ��ݡ��Ȥ�JAXB Vendor Extension�Ȥ����󶡤���Ƥ��ޤ���
.TP 3
\-wsdl
���Ϥ�WSDL�Ȥ��ư��������������Υ������ޤ򥳥�ѥ��뤷�ޤ�(�Ū��̤���ݡ���)��
.TP 3
\-quiet
��Ľ�����ٹ�ʤɡ�����ѥ���ν��Ϥ��������ޤ���
.TP 3
\-verbose
�����å���������Ϥ���������Υ��顼ȯ�����˥����å����ȥ졼����ɽ�������ꤹ��ʤɡ������ƾ�Ĺ�ˤʤ�ޤ���
.TP 3
\-help
����ѥ��顦�����å��γ��פ�ɽ�����ޤ���
.TP 3
\-version
����ѥ���ΥС����������ɽ�����ޤ���
.TP 3
<schema file/URL/dir>
����ѥ����оݤȤʤ�1�Ĥޤ���ʣ���Υ������ޡ��ե��������ꤷ�ޤ����桼�������ǥ��쥯�ȥ����ꤷ����硢xjc�Ϥ��Υǥ��쥯�ȥ���������������Ǹ��Ĥ��ä����٤ƤΥ������ޡ��ե�����򥳥�ѥ��뤷�ޤ���
.RE
.LP
.SS
��ɸ��Υ��ޥ�ɥ饤�󡦥��ץ����
.LP
.RS 3
.TP 3
\-Xlocator
�������줿�����ɤǤϡ������󲽤θ��Java Bean���󥹥��󥹤˴ޤޤ�륽����XML�˴ؤ���SAX Locator���󤬸���ޤ���
.TP 3
\-Xsync\-methods
�������줿���٤ƤΥ᥽�åɡ������˥����\f2synchronized\fP������ɤ��ޤ���ޤ���
.TP 3
\-mark\-generated
�������줿�����ɤ����\f2@javax.annotation.Generated\fP���դ��ޤ���
.TP 3
\-episode <file>
����ѥ��뤴�Ȥ˻��ꤵ�줿���ԥ����ɡ��ե�������������ޤ���
.RE
.LP
.SS
��侩���ޥ�ɥ饤�󡦥��ץ���󤪤�Ӻ��줿���ޥ�ɥ饤�󡦥��ץ����
.LP
.RS 3
.TP 3
\-host & \-port
�����Υ��ץ�������侩�Ȥʤꡢ\f3\-httpproxy\fP���ץ������֤��������ޤ����������Υ��ץ����ϡ����̸ߴ�������ݤ�����Ū�ǰ�³�����ݡ��Ȥ���ޤ������ɥ�����Ȥˤϵ��ܤ��줺������Υ�꡼���Ǻ�����ǽ���⤢��ޤ���
.TP 3
\-use\-runtime
JAXB 2.0���ͤǤϡ��ܿ����Τ����󥿥��ब������줿���ᡢJAXB RI��**/impl/runtime�ѥå���������������ɬ�פ��ʤ��ʤ�ޤ��������Τ��ᡢ���Υ����å������פȤʤꡢ����ޤ�����
.TP 3
\-source
\-source�ߴ��������å��ϡ�JAXB 2.0�κǽ��Early Access�Ǥ�Ƴ������ޤ��������Υ����å��ϡ�JAXB 2.0�κ���Υ�꡼���������뤳�Ȥˤʤ�ޤ�����1.0.x�����ɤ���������ɬ�פ�������ϡ�1.0.x�����ɥ١����Υ��󥹥ȡ������Ѥ��Ƥ���������
.RE
.LP
.SS
����ѥ��������
.LP
.LP
�̾�ϡ���Ϣ���뤹�٤ƤΥ������ޤ�Ʊ���Х���ǥ��󥰡�����ѥ��顦�����å�����ꤷ��1�Ĥ�ñ�̤Ȥ��ƥ���ѥ��뤹��Τ��Ǥ�����Ǥ���
.LP
.LP
xjc��¹Ԥ���Ȥ��ϡ����˼������¤���դ��Ƥ�������������������ΤۤȤ�ɤϡ�xjc���٤��ƤӽФ���ʣ���Υ������ޤ򥳥�ѥ��뤹����ˤΤ����ƤϤޤ�ޤ���
.LP
.RS 3
.TP 2
o
ʣ���Υ������ޤ�Ʊ���˥���ѥ��뤹����ϡ��������åȤ�Java�ѥå�����̾�˼���ͥ���̤Υ롼�뤬Ŭ�Ѥ���뤳�Ȥ���դ��Ƥ���������
.RS 3
.TP 3
1.
��\f2\-p\fP�ץ��ޥ�ɥ饤�󡦥��ץ���󤬺Ǥ�ͥ�褵��ޤ���
.TP 3
2.
<\f2jaxb:package\fP>�Υ������ޥ���
.TP 3
3.
\f2targetNamespace\fP���������Ƥ�����ϡ����ͤ��������Ƥ���\f2targetNamespace\fP \-> Java�ѥå�����̾�Υ��르�ꥺ���Ŭ�Ѥ��ޤ���
.TP 3
4.
\f2targetNamespace\fP���������Ƥ��ʤ����ϡ���generated�פȤ���̾���Υϡ��ɥ����ɤ��줿�ѥå���������Ѥ��ޤ���
.RE
.TP 2
o
̾�����֤��Ȥ�ʣ����<\f2jaxb:schemaBindings\fP>���Ĥ��Ȥ������Ǥ������Τ��ᡢ1�ĤΥ������å�̾���������2�ĤΥ������ޤ�ۤʤ�Java�ѥå������˥���ѥ��뤹�뤳�ȤϤǤ��ޤ���
.TP 2
o
1�Ĥ�Java�ѥå������˥���ѥ��뤵��뤹�٤ƤΥ������ޤϡ�XJC�Х���ǥ��󥰡�����ѥ����Ʊ������������ɬ�פ�����ޤ������̤˥���ѥ��뤹�뤳�ȤϤǤ�����ͽ��Ȥ����ư��ޤ���
.TP 2
o
ʣ���Υ������ޡ��ե�����ˤޤ����������ִ����롼�פϡ�Ʊ���˥���ѥ��뤹��ɬ�פ�����ޤ���
.RE
.LP
.SH "��Ϣ����"
.LP
.RS 3
.TP 2
o
�Х���ǥ��󥰡�����ѥ���(XJC)�μ¹�: [
.na
\f2���ޥ�ɥ饤���̿��\fP @
.fi
https://jaxb.dev.java.net/nonav/2.1.3/docs/xjc.html��
.na
\f2XJC Ant���������\fP @
.fi
https://jaxb.dev.java.net/nonav/2.1.3/docs/xjcTask.html]
.TP 2
o
.na
\f2XML�Х���ɤΤ����Java�������ƥ�����(JAXB)\fP @
.fi
http://download.oracle.com/javase/7/docs/technotes/guides/xml/jaxb/index.html
.RE
.LP