schemagen.1 3.3 KB
Newer Older
D
duke 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
." Copyright 2005-2006 Sun Microsystems, Inc.  All Rights Reserved.
." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
."
." This code is free software; you can redistribute it and/or modify it
." under the terms of the GNU General Public License version 2 only, as
." published by the Free Software Foundation.
."
." This code is distributed in the hope that it will be useful, but WITHOUT
." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
." FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
." version 2 for more details (a copy is included in the LICENSE file that
." accompanied this code).
."
." You should have received a copy of the GNU General Public License version
." 2 along with this work; if not, write to the Free Software Foundation,
." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
."
." Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
." CA 95054 USA or visit www.sun.com if you need additional information or
." have any questions.
T
tbell 已提交
21 22 23
."
.TH schemagen 1 "04 May 2009"
." Generated from HTML by html2man (author: Eric Armstrong)
D
duke 已提交
24 25

.LP
T
tbell 已提交
26 27 28 29 30
.SH "Name"
schemagen \- Java(TM) Architecture for XML Binding Schema Generator
.LP
.LP
\f3Specification Version:\fP 2.1
D
duke 已提交
31
.br
T
tbell 已提交
32
\f3Implementation Version:\fP 2.1.3
D
duke 已提交
33 34 35 36 37 38 39 40 41 42 43
.LP
.SS 
Launching schemagen
.LP
.LP
The schema generator can be launched using the appropriate \f2schemagen\fP shell script in the \f2bin\fP directory for your platform.
.LP
.LP
The current schema generator can process either Java source files or class files.
.LP
.LP
T
tbell 已提交
44 45 46 47 48
We also provide an Ant task to run the schema generator \- see the instructions for 
.na
\f2using schemagen with Ant\fP @
.fi
https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html.
D
duke 已提交
49 50 51 52 53 54 55
.LP
.RS 3

.LP
.nf
\f3
.fl
T
tbell 已提交
56
% schemagen.sh Foo.java Bar.java ...
D
duke 已提交
57
.fl
T
tbell 已提交
58
Note: Writing schema1.xsd
D
duke 已提交
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
.fl
\fP
.fi
.RE

.LP
.LP
If 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.
.LP
.RS 3

.LP
\f3Command Line Options\fP
.LP
.RS 3

.LP
.nf
\f3
.fl
Usage: schemagen [\-options ...] <java files> 
.fl

.fl
Options: 
.fl
    \-d <path>         :  Specify where to place processor and javac generated class files 
.fl
    \-cp <path>        :  Specify where to find user specified files  
.fl
    \-classpath <path> :  Specify where to find user specified files  
.fl
    \-help             :  Display this usage message
.fl
\fP
.fi
.RE

.LP
.RE
.SS 
Generated Resource Files
.LP
.LP
T
tbell 已提交
103 104 105 106 107
The 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 
.na
\f2the schema generator ant task\fP @
.fi
https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html.
D
duke 已提交
108 109 110 111 112 113
.LP
.SH "See Also"
.LP
.RS 3
.TP 2
o
T
tbell 已提交
114
Running the schema generator (schemagen): [
D
duke 已提交
115
.na
T
tbell 已提交
116
\f2command\-line instructions\fP @
D
duke 已提交
117
.fi
T
tbell 已提交
118
https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagen.html, 
D
duke 已提交
119
.na
T
tbell 已提交
120
\f2using the SchemaGen Ant task\fP @
D
duke 已提交
121
.fi
T
tbell 已提交
122
https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html] 
D
duke 已提交
123 124 125
.TP 2
o
.na
T
tbell 已提交
126
\f2Java Architecture for XML Binding (JAXB)\fP @
D
duke 已提交
127
.fi
T
tbell 已提交
128
http://java.sun.com/javase/6/docs/technotes/guides/xml/jaxb/index.html 
D
duke 已提交
129 130 131
.RE

.LP
T
tbell 已提交
132 133

.LP
D
duke 已提交
134