![]() | Documentation Contents |
?????????????????????: 2.1
???????????????????????? (RI) ???????????????: 2.1.3
???????????????????????????????????????????????????????????????????????????????????????????????????????????? bin
???????????????????????? xjc
?????????????????????????????????????????????????????????????????????????????????????????????????????????????????? Ant ??????????????????????????????????????? xjc ??? Ant ?????????????????????????????????????????????????????????????????????
% xjc -help
Usage: xjc [-options ...] <schema_file/URL/dir> ... [-b <bindinfo>] ... Options: -nv : do not perform strict validation of the input schema(s) -extension : allow vendor extensions - do not strictly follow the Compatibility Rules and App E.2 from the JAXB Spec -b <file/dir> : specify external bindings files (each <file> must have its own -b) If a directory is given, **/*.xjb is searched -d <dir> : generated files will go into this directory -p <pkg> : specifies the target package -httpproxy <proxy> : set HTTP/HTTPS proxy. Format is [user[:password]@]proxyHost:proxyPort -httpproxyfile <file>: set the proxy string (same format as above). -classpath <arg> : specify where to find user class files -catalog <file> : specify catalog files to resolve external entity references support TR9401, XCatalog, and OASIS XML Catalog format. -readOnly : generated files will be in read-only mode -npa : suppress generation of package level annotations (**/package-info.java) -no-header : suppress generation of a file header with timestamp -target 2.0 : behave like XJC 2.0 and generate code that doesnt use any 2.1 features. -xmlschema : treat input as W3C XML Schema (default) -relaxng : treat input as RELAX NG (experimental,unsupported) -relaxng-compact : treat input as RELAX NG compact syntax (experimental,unsupported) -dtd : treat input as XML DTD (experimental,unsupported) -wsdl : treat input as WSDL and compile schemas inside it (experimental,unsupported) -verbose : be extra verbose -quiet : suppress compiler output -help : display this help message -version : display version information
- -nv
- ????????????????????????XJC ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ??????????????????????????????????????????????????????????????????
- -extension
- ????????????????????????XJC ??????????????????????????????????????????JAXB ????????????Compatibility??????????????????????????????????????????????????????????????????????????? E.2 ?????????JAXB v1.0 ?????????????????????????????????????????????????????? W3C XML ???????????????????????????????????????????????? ???????????????????????????????????????????????????????????????-extension???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????-extension????????????????????????????????????JAXB Vendor Extension ????????????????????????
- -b <file>
- ?????????????????????????????????????????????????????? 1 ????????????????????????????????????(?????????????????????????????????????????????
-b
??????????????????????????????????????????????????????)???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? 1 ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????xjc schema1.xsd schema2.xsd schema3.xsd -b bindings123.xjb
xjc schema1.xsd schema2.xsd schema3.xsd -b bindings1.xjb -b bindings2.xjb -b bindings3.xjb- -d <dir>
- ????????????????????????XJC ??????????????????????????????????????????Java ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? XJC ??????????????????????????????????????????????????????????????????????????????????????????????????????
- -p <pkg>
- ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
- -httpproxy <proxy>
- HTTP/HTTPS ?????????????????????????????????????????? [user[:password]@]proxyHost[:proxyPort] ??????????????????
-host
?????????-port
???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????top
??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????-httpproxyfile
??????????????????????????????- -httpproxyfile <file>
- HTTP/HTTPS ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
- -classpath <arg>
<jxb:javaType>
?????????<xjc:superClass>
???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????- -catalog <file>
- ?????????????????????????????????????????????????????????????????????????????????????????????TR9401???XCatalog???????????? OASIS XML Catalog ???????????????????????????????????????????????????XML Entity and URI Resolvers??????????????????????????????????????????
????????????????????????
??????????????????????????????????????????????????????????????????- -readOnly
- ????????????????????????XJC ?????????????????????????????????????????????????????? Java ?????????????????????????????????????????????????????????????????????????????????????????????????????????XJC ?????????????????????????????????????????????????????? Java ?????????????????????????????????????????????????????????
- -npa
- ???????????????????????????????????? **/package-info.java ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
- -no-header
- ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
- -target 2.0
- ??????????????? JAXB 2.1 ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????? JAXB 2.0 ??????????????? (JavaSE 6 ??????) ????????????????????????
- -xmlschema
- ????????????????????? W3C XML ???????????? (???????????????) ??????????????????????????????????????????????????????????????????????????????????????? W3C XML ????????????????????????????????????
- -relaxng
- ????????????????????? RELAX NG ????????????????????? (???????????????????????????)???RELAX NG ?????????????????????????????? JAXB Vendor Extension ????????????????????????????????????
- -relaxng-compact
- ????????????????????? RELAX NG ???????????????????????????????????? (???????????????????????????)???RELAX NG ?????????????????????????????? JAXB Vendor Extension ????????????????????????????????????
- -dtd
- ????????????????????? XML DTD ????????????????????? (???????????????????????????)???RELAX NG ?????????????????????????????? JAXB Vendor Extension ????????????????????????????????????
- -wsdl
- ????????? WSDL ???????????????????????????????????????????????????????????????????????? (???????????????????????????)???
- -quiet
- ???????????????????????????????????????????????????????????????????????????
- -verbose
- ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
- -help
- ?????????????????????????????????????????????????????????
- -version
- ????????????????????????????????????????????????????????????
- <schema file/URL/dir>
- ?????????????????????????????? 1 ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????xjc ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
- -host & -port
- ???????????????????????????????????????????????????-httpproxy ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
- -use-runtime
- JAXB 2.0 ?????????????????????????????????????????????????????????????????????JAXB RI ??? **/impl/runtime ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
- -source
- -source ???????????????????????????JAXB 2.0 ???????????? Early Access ??????????????????????????????????????????????????????JAXB 2.0 ????????????????????????????????????????????????????????????????????????1.0.x ??????????????????????????????????????????????????????1.0.x ?????????????????????????????????????????????????????????????????????
- -Xlocator & -Xsync-methods
- ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? 1 ???????????????????????????????????????????????????????????????????????????
xjc ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????xjc ????????????????????????????????????????????????????????????????????????????????????????????????????????????
-p
?????????????????????????????????????????????????????????????????????jaxb:package
> ?????????????????????targetNamespace
?????????????????????????????????????????????????????????????????? targetNamespace
-> Java ????????????????????????????????????????????????????????????targetNamespace
???????????????????????????????????????"generated" ?????????????????????????????????????????????????????????????????????????????????jaxb:schemaBindings
> ????????????????????????????????? ???????????????1 ??????????????????????????????????????? 2 ????????????????????????????????? Java ??????????????????????????????????????????????????????????????????Copyright © 1995-2010 Sun Microsystems, Inc. All Rights Reserved. Please send comments using this Feedback page. |
![]() Java Technology |