schemagen.1 revision 1178
20c794b39650d115e17a15983b6b82e46238cf45gavinm." Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
20c794b39650d115e17a15983b6b82e46238cf45gavinm." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
20c794b39650d115e17a15983b6b82e46238cf45gavinm."
20c794b39650d115e17a15983b6b82e46238cf45gavinm." This code is free software; you can redistribute it and/or modify it
20c794b39650d115e17a15983b6b82e46238cf45gavinm." under the terms of the GNU General Public License version 2 only, as
20c794b39650d115e17a15983b6b82e46238cf45gavinm." published by the Free Software Foundation.
20c794b39650d115e17a15983b6b82e46238cf45gavinm."
20c794b39650d115e17a15983b6b82e46238cf45gavinm." This code is distributed in the hope that it will be useful, but WITHOUT
20c794b39650d115e17a15983b6b82e46238cf45gavinm." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20c794b39650d115e17a15983b6b82e46238cf45gavinm." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20c794b39650d115e17a15983b6b82e46238cf45gavinm." version 2 for more details (a copy is included in the LICENSE file that
20c794b39650d115e17a15983b6b82e46238cf45gavinm." accompanied this code).
20c794b39650d115e17a15983b6b82e46238cf45gavinm."
20c794b39650d115e17a15983b6b82e46238cf45gavinm." You should have received a copy of the GNU General Public License version
20c794b39650d115e17a15983b6b82e46238cf45gavinm." 2 along with this work; if not, write to the Free Software Foundation,
20c794b39650d115e17a15983b6b82e46238cf45gavinm." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20c794b39650d115e17a15983b6b82e46238cf45gavinm."
20c794b39650d115e17a15983b6b82e46238cf45gavinm." Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
20c794b39650d115e17a15983b6b82e46238cf45gavinm." CA 95054 USA or visit www.sun.com if you need additional information or
20c794b39650d115e17a15983b6b82e46238cf45gavinm." have any questions.
20c794b39650d115e17a15983b6b82e46238cf45gavinm."
20c794b39650d115e17a15983b6b82e46238cf45gavinm.TH schemagen 1 "04 May 2009"
b7d3956b92a285d8dac2c7f5f7e28d2ef5347ef8stephh." Generated from HTML by html2man (author: Eric Armstrong)
20c794b39650d115e17a15983b6b82e46238cf45gavinm
20c794b39650d115e17a15983b6b82e46238cf45gavinm.LP
20c794b39650d115e17a15983b6b82e46238cf45gavinm.SH "Name"
20c794b39650d115e17a15983b6b82e46238cf45gavinmschemagen \- Java(TM) Architecture for XML Binding Schema Generator
20c794b39650d115e17a15983b6b82e46238cf45gavinm.LP
20c794b39650d115e17a15983b6b82e46238cf45gavinm.LP
20c794b39650d115e17a15983b6b82e46238cf45gavinm\f3Specification Version:\fP 2.1
20c794b39650d115e17a15983b6b82e46238cf45gavinm.br
20c794b39650d115e17a15983b6b82e46238cf45gavinm\f3Implementation Version:\fP 2.1.3
20c794b39650d115e17a15983b6b82e46238cf45gavinm.LP
20c794b39650d115e17a15983b6b82e46238cf45gavinm.SS
20c794b39650d115e17a15983b6b82e46238cf45gavinmLaunching schemagen
20c794b39650d115e17a15983b6b82e46238cf45gavinm.LP
20c794b39650d115e17a15983b6b82e46238cf45gavinm.LP
20c794b39650d115e17a15983b6b82e46238cf45gavinmThe schema generator can be launched using the appropriate \f2schemagen\fP shell script in the \f2bin\fP directory for your platform.
20c794b39650d115e17a15983b6b82e46238cf45gavinm.LP
20c794b39650d115e17a15983b6b82e46238cf45gavinm.LP
20c794b39650d115e17a15983b6b82e46238cf45gavinmThe current schema generator can process either Java source files or class files.
20c794b39650d115e17a15983b6b82e46238cf45gavinm.LP
20c794b39650d115e17a15983b6b82e46238cf45gavinm.LP
20c794b39650d115e17a15983b6b82e46238cf45gavinmWe also provide an Ant task to run the schema generator \- see the instructions for
20c794b39650d115e17a15983b6b82e46238cf45gavinm.na
20c794b39650d115e17a15983b6b82e46238cf45gavinm\f2using schemagen with Ant\fP @
20c794b39650d115e17a15983b6b82e46238cf45gavinm.fi
20c794b39650d115e17a15983b6b82e46238cf45gavinmhttps://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html.
20c794b39650d115e17a15983b6b82e46238cf45gavinm.LP
20c794b39650d115e17a15983b6b82e46238cf45gavinm.RS 3
20c794b39650d115e17a15983b6b82e46238cf45gavinm
20c794b39650d115e17a15983b6b82e46238cf45gavinm.LP
20c794b39650d115e17a15983b6b82e46238cf45gavinm.nf
20c794b39650d115e17a15983b6b82e46238cf45gavinm\f3
20c794b39650d115e17a15983b6b82e46238cf45gavinm.fl
20c794b39650d115e17a15983b6b82e46238cf45gavinm% schemagen.sh Foo.java Bar.java ...
20c794b39650d115e17a15983b6b82e46238cf45gavinm.fl
20c794b39650d115e17a15983b6b82e46238cf45gavinmNote: Writing schema1.xsd
20c794b39650d115e17a15983b6b82e46238cf45gavinm.fl
20c794b39650d115e17a15983b6b82e46238cf45gavinm\fP
20c794b39650d115e17a15983b6b82e46238cf45gavinm.fi
20c794b39650d115e17a15983b6b82e46238cf45gavinm.RE
20c794b39650d115e17a15983b6b82e46238cf45gavinm
20c794b39650d115e17a15983b6b82e46238cf45gavinm.LP
20c794b39650d115e17a15983b6b82e46238cf45gavinm.LP
20c794b39650d115e17a15983b6b82e46238cf45gavinmIf your java sources/classes reference other classes, they must be accessable on your system CLASSPATH environment variable, or they need to be given to the tool by using the \f2\-classpath\fP/\f2\-cp\fP options. Otherwise you will see errors when generating your schema.
20c794b39650d115e17a15983b6b82e46238cf45gavinm.LP
20c794b39650d115e17a15983b6b82e46238cf45gavinm.RS 3
20c794b39650d115e17a15983b6b82e46238cf45gavinm
20c794b39650d115e17a15983b6b82e46238cf45gavinm.LP
20c794b39650d115e17a15983b6b82e46238cf45gavinm\f3Command Line Options\fP
20c794b39650d115e17a15983b6b82e46238cf45gavinm.LP
20c794b39650d115e17a15983b6b82e46238cf45gavinm.RS 3
20c794b39650d115e17a15983b6b82e46238cf45gavinm
20c794b39650d115e17a15983b6b82e46238cf45gavinm.LP
20c794b39650d115e17a15983b6b82e46238cf45gavinm.nf
20c794b39650d115e17a15983b6b82e46238cf45gavinm\f3
20c794b39650d115e17a15983b6b82e46238cf45gavinm.fl
20c794b39650d115e17a15983b6b82e46238cf45gavinmUsage: schemagen [\-options ...] <java files>
20c794b39650d115e17a15983b6b82e46238cf45gavinm.fl
20c794b39650d115e17a15983b6b82e46238cf45gavinm
20c794b39650d115e17a15983b6b82e46238cf45gavinm.fl
20c794b39650d115e17a15983b6b82e46238cf45gavinmOptions:
20c794b39650d115e17a15983b6b82e46238cf45gavinm.fl
20c794b39650d115e17a15983b6b82e46238cf45gavinm \-d <path> : Specify where to place processor and javac generated class files
20c794b39650d115e17a15983b6b82e46238cf45gavinm.fl
20c794b39650d115e17a15983b6b82e46238cf45gavinm \-cp <path> : Specify where to find user specified files
20c794b39650d115e17a15983b6b82e46238cf45gavinm.fl
20c794b39650d115e17a15983b6b82e46238cf45gavinm \-classpath <path> : Specify where to find user specified files
20c794b39650d115e17a15983b6b82e46238cf45gavinm.fl
20c794b39650d115e17a15983b6b82e46238cf45gavinm \-help : Display this usage message
20c794b39650d115e17a15983b6b82e46238cf45gavinm.fl
20c794b39650d115e17a15983b6b82e46238cf45gavinm\fP
20c794b39650d115e17a15983b6b82e46238cf45gavinm.fi
20c794b39650d115e17a15983b6b82e46238cf45gavinm.RE
20c794b39650d115e17a15983b6b82e46238cf45gavinm
20c794b39650d115e17a15983b6b82e46238cf45gavinm.LP
20c794b39650d115e17a15983b6b82e46238cf45gavinm.RE
20c794b39650d115e17a15983b6b82e46238cf45gavinm.SS
20c794b39650d115e17a15983b6b82e46238cf45gavinmGenerated Resource Files
b7d3956b92a285d8dac2c7f5f7e28d2ef5347ef8stephh.LP
20c794b39650d115e17a15983b6b82e46238cf45gavinm.LP
20c794b39650d115e17a15983b6b82e46238cf45gavinmThe current schema generator simply creates a schema file for each namespace referenced in your Java classes. There is no way to control the name of the generated schema files at this time. For that purpose, use
20c794b39650d115e17a15983b6b82e46238cf45gavinm.na
20c794b39650d115e17a15983b6b82e46238cf45gavinm\f2the schema generator ant task\fP @
20c794b39650d115e17a15983b6b82e46238cf45gavinm.fi
20c794b39650d115e17a15983b6b82e46238cf45gavinmhttps://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html.
20c794b39650d115e17a15983b6b82e46238cf45gavinm.LP
20c794b39650d115e17a15983b6b82e46238cf45gavinm.SH "See Also"
b7d3956b92a285d8dac2c7f5f7e28d2ef5347ef8stephh.LP
20c794b39650d115e17a15983b6b82e46238cf45gavinm.RS 3
20c794b39650d115e17a15983b6b82e46238cf45gavinm.TP 2
20c794b39650d115e17a15983b6b82e46238cf45gavinmo
20c794b39650d115e17a15983b6b82e46238cf45gavinmRunning the schema generator (schemagen): [
20c794b39650d115e17a15983b6b82e46238cf45gavinm.na
20c794b39650d115e17a15983b6b82e46238cf45gavinm\f2command\-line instructions\fP @
20c794b39650d115e17a15983b6b82e46238cf45gavinm.fi
20c794b39650d115e17a15983b6b82e46238cf45gavinmhttps://jaxb.dev.java.net/nonav/2.1.3/docs/schemagen.html,
20c794b39650d115e17a15983b6b82e46238cf45gavinm.na
20c794b39650d115e17a15983b6b82e46238cf45gavinm\f2using the SchemaGen Ant task\fP @
20c794b39650d115e17a15983b6b82e46238cf45gavinm.fi
20c794b39650d115e17a15983b6b82e46238cf45gavinmhttps://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html]
b7d3956b92a285d8dac2c7f5f7e28d2ef5347ef8stephh.TP 2
b7d3956b92a285d8dac2c7f5f7e28d2ef5347ef8stephho
b7d3956b92a285d8dac2c7f5f7e28d2ef5347ef8stephh.na
20c794b39650d115e17a15983b6b82e46238cf45gavinm\f2Java Architecture for XML Binding (JAXB)\fP @
20c794b39650d115e17a15983b6b82e46238cf45gavinm.fi
20c794b39650d115e17a15983b6b82e46238cf45gavinmhttp://java.sun.com/javase/6/docs/technotes/guides/xml/jaxb/index.html
20c794b39650d115e17a15983b6b82e46238cf45gavinm.RE
b7d3956b92a285d8dac2c7f5f7e28d2ef5347ef8stephh
b7d3956b92a285d8dac2c7f5f7e28d2ef5347ef8stephh.LP
20c794b39650d115e17a15983b6b82e46238cf45gavinm
b7d3956b92a285d8dac2c7f5f7e28d2ef5347ef8stephh.LP
b7d3956b92a285d8dac2c7f5f7e28d2ef5347ef8stephh
20c794b39650d115e17a15983b6b82e46238cf45gavinm