2692
|
1 |
." Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
|
2
|
2 |
." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
3 |
."
|
|
4 |
." This code is free software; you can redistribute it and/or modify it
|
|
5 |
." under the terms of the GNU General Public License version 2 only, as
|
|
6 |
." published by the Free Software Foundation.
|
|
7 |
."
|
|
8 |
." This code is distributed in the hope that it will be useful, but WITHOUT
|
|
9 |
." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
10 |
." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
11 |
." version 2 for more details (a copy is included in the LICENSE file that
|
|
12 |
." accompanied this code).
|
|
13 |
."
|
|
14 |
." You should have received a copy of the GNU General Public License version
|
|
15 |
." 2 along with this work; if not, write to the Free Software Foundation,
|
|
16 |
." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
17 |
."
|
|
18 |
." Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
|
19 |
." CA 95054 USA or visit www.sun.com if you need additional information or
|
|
20 |
." have any questions.
|
2692
|
21 |
."
|
|
22 |
.TH schemagen 1 "04 May 2009"
|
|
23 |
." Generated from HTML by html2man (author: Eric Armstrong)
|
2
|
24 |
|
|
25 |
.LP
|
2692
|
26 |
.SH "Name"
|
|
27 |
schemagen \- Java(TM) Architecture for XML Binding Schema Generator
|
|
28 |
.LP
|
|
29 |
.LP
|
|
30 |
\f3Specification Version:\fP 2.1
|
2
|
31 |
.br
|
2692
|
32 |
\f3Implementation Version:\fP 2.1.3
|
2
|
33 |
.LP
|
|
34 |
.SS
|
|
35 |
Launching schemagen
|
|
36 |
.LP
|
|
37 |
.LP
|
|
38 |
The schema generator can be launched using the appropriate \f2schemagen\fP shell script in the \f2bin\fP directory for your platform.
|
|
39 |
.LP
|
|
40 |
.LP
|
|
41 |
The current schema generator can process either Java source files or class files.
|
|
42 |
.LP
|
|
43 |
.LP
|
2692
|
44 |
We also provide an Ant task to run the schema generator \- see the instructions for
|
|
45 |
.na
|
|
46 |
\f2using schemagen with Ant\fP @
|
|
47 |
.fi
|
|
48 |
https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html.
|
2
|
49 |
.LP
|
|
50 |
.RS 3
|
|
51 |
|
|
52 |
.LP
|
|
53 |
.nf
|
|
54 |
\f3
|
|
55 |
.fl
|
2692
|
56 |
% schemagen.sh Foo.java Bar.java ...
|
2
|
57 |
.fl
|
2692
|
58 |
Note: Writing schema1.xsd
|
2
|
59 |
.fl
|
|
60 |
\fP
|
|
61 |
.fi
|
|
62 |
.RE
|
|
63 |
|
|
64 |
.LP
|
|
65 |
.LP
|
|
66 |
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.
|
|
67 |
.LP
|
|
68 |
.RS 3
|
|
69 |
|
|
70 |
.LP
|
|
71 |
\f3Command Line Options\fP
|
|
72 |
.LP
|
|
73 |
.RS 3
|
|
74 |
|
|
75 |
.LP
|
|
76 |
.nf
|
|
77 |
\f3
|
|
78 |
.fl
|
|
79 |
Usage: schemagen [\-options ...] <java files>
|
|
80 |
.fl
|
|
81 |
|
|
82 |
.fl
|
|
83 |
Options:
|
|
84 |
.fl
|
|
85 |
\-d <path> : Specify where to place processor and javac generated class files
|
|
86 |
.fl
|
|
87 |
\-cp <path> : Specify where to find user specified files
|
|
88 |
.fl
|
|
89 |
\-classpath <path> : Specify where to find user specified files
|
|
90 |
.fl
|
|
91 |
\-help : Display this usage message
|
|
92 |
.fl
|
|
93 |
\fP
|
|
94 |
.fi
|
|
95 |
.RE
|
|
96 |
|
|
97 |
.LP
|
|
98 |
.RE
|
|
99 |
.SS
|
|
100 |
Generated Resource Files
|
|
101 |
.LP
|
|
102 |
.LP
|
2692
|
103 |
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
|
|
104 |
.na
|
|
105 |
\f2the schema generator ant task\fP @
|
|
106 |
.fi
|
|
107 |
https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html.
|
2
|
108 |
.LP
|
|
109 |
.SH "See Also"
|
|
110 |
.LP
|
|
111 |
.RS 3
|
|
112 |
.TP 2
|
|
113 |
o
|
2692
|
114 |
Running the schema generator (schemagen): [
|
2
|
115 |
.na
|
2692
|
116 |
\f2command\-line instructions\fP @
|
2
|
117 |
.fi
|
2692
|
118 |
https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagen.html,
|
2
|
119 |
.na
|
2692
|
120 |
\f2using the SchemaGen Ant task\fP @
|
2
|
121 |
.fi
|
2692
|
122 |
https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html]
|
2
|
123 |
.TP 2
|
|
124 |
o
|
|
125 |
.na
|
2692
|
126 |
\f2Java Architecture for XML Binding (JAXB)\fP @
|
2
|
127 |
.fi
|
2692
|
128 |
http://java.sun.com/javase/6/docs/technotes/guides/xml/jaxb/index.html
|
2
|
129 |
.RE
|
|
130 |
|
|
131 |
.LP
|
2692
|
132 |
|
|
133 |
.LP
|
2
|
134 |
|