comparison src/share/classes/com/sun/tools/internal/xjc/reader/dtd/bindinfo/bindingfile.xsd @ 0:0961a4a21176

Initial load
author duke
date Sat, 01 Dec 2007 00:00:00 +0000
parents
children 31822b475baa
comparison
equal deleted inserted replaced
-1:000000000000 0:591861265ed7
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4 Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
5 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6
7 This code is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License version 2 only, as
9 published by the Free Software Foundation. Sun designates this
10 particular file as subject to the "Classpath" exception as provided
11 by Sun in the LICENSE file that accompanied this code.
12
13 This code is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 version 2 for more details (a copy is included in the LICENSE file that
17 accompanied this code).
18
19 You should have received a copy of the GNU General Public License version
20 2 along with this work; if not, write to the Free Software Foundation,
21 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
22
23 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
24 CA 95054 USA or visit www.sun.com if you need additional information or
25 have any questions.
26 -->
27
28 <!--
29 DTD binding information file which is supported by this version of XJC.
30 $Id: bindingfile.xsd,v 1.1 2005/04/29 18:11:05 kohsuke Exp $
31
32 - Changes from the EA1 is marked by "CHANGE:"
33 - "ref:key" and "ref:keyref" are used to specify cross-reference
34 information.
35 - "a:defaultValue" is used to specify the default behavior.
36 Note that default behaviors are hard-coded to the source code.
37 Values specified in this schema is not used in the actual processing.
38 -->
39 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc">
40 <xs:import namespace="http://java.sun.com/xml/ns/jaxb/xjc" schemaLocation="xjc.xsd"/>
41 <xs:element name="xml-java-binding-schema">
42 <xs:complexType>
43 <xs:choice minOccurs="0" maxOccurs="unbounded">
44 <xs:element ref="options"/>
45 <xs:element ref="xjc:serializable"/>
46 <xs:element ref="xjc:superClass"/>
47 <xs:element ref="xjc:noMarshaller"/>
48 <xs:element ref="xjc:noUnmarshaller"/>
49 <xs:element ref="xjc:noValidator"/>
50 <xs:element ref="xjc:noValidatingUnmarshaller"/>
51 <xs:choice>
52 <xs:group ref="toplevel.declaration"/>
53 <xs:element ref="global.or.local.declaration"/>
54 </xs:choice>
55 </xs:choice>
56 <xs:attribute name="version">
57 <xs:simpleType>
58 <xs:restriction base="xs:token">
59 <xs:enumeration value="1.0ea2"/>
60 </xs:restriction>
61 </xs:simpleType>
62 </xs:attribute>
63 </xs:complexType>
64 </xs:element>
65 <xs:element name="options">
66 <xs:complexType>
67 <xs:attribute name="package"/>
68 </xs:complexType>
69 </xs:element>
70 <!-- element-class declaration -->
71 <xs:group name="toplevel.declaration">
72 <xs:choice>
73 <xs:element name="element">
74 <xs:complexType>
75 <xs:choice minOccurs="0" maxOccurs="unbounded">
76 <xs:element ref="attribute"/>
77 <xs:element ref="global.or.local.declaration"/>
78 <xs:element ref="constructor"/>
79 <xs:element ref="content"/>
80 </xs:choice>
81 <xs:attribute name="name" use="required"/>
82 <xs:attribute name="type" use="required">
83 <xs:simpleType>
84 <xs:restriction base="xs:token">
85 <xs:enumeration value="class"/>
86 <xs:enumeration value="value"/>
87 </xs:restriction>
88 </xs:simpleType>
89 </xs:attribute>
90 <xs:attribute name="class" type="java.classname.datatype"/>
91 <xs:attribute name="root">
92 <xs:simpleType>
93 <xs:restriction base="xs:token">
94 <xs:enumeration value="true"/>
95 <xs:enumeration value="false"/>
96 </xs:restriction>
97 </xs:simpleType>
98 </xs:attribute>
99 <xs:attribute name="convert"/>
100 </xs:complexType>
101 </xs:element>
102 <xs:element ref="interface"/>
103 </xs:choice>
104 </xs:group>
105 <xs:element name="attribute">
106 <xs:complexType>
107 <xs:attribute name="name" use="required"/>
108 <xs:attribute name="property"/>
109 <xs:attribute name="collection">
110 <xs:simpleType>
111 <xs:restriction base="xs:token">
112 <xs:enumeration value="list"/>
113 <xs:enumeration value="set"/>
114 <xs:enumeration value="vector"/>
115 </xs:restriction>
116 </xs:simpleType>
117 </xs:attribute>
118 <xs:attribute name="convert"/>
119 </xs:complexType>
120 </xs:element>
121 <xs:element name="constructor">
122 <xs:complexType>
123 <xs:attribute name="properties" use="required">
124 <xs:simpleType>
125 <xs:restriction>
126 <xs:simpleType>
127 <xs:list itemType="xs:token"/>
128 </xs:simpleType>
129 <xs:minLength value="1"/>
130 </xs:restriction>
131 </xs:simpleType>
132 </xs:attribute>
133 </xs:complexType>
134 </xs:element>
135 <xs:element name="content">
136 <xs:complexType>
137 <xs:sequence minOccurs="0">
138 <xs:choice minOccurs="0" maxOccurs="unbounded">
139 <xs:element ref="element-ref"/>
140 <xs:choice>
141 <xs:element ref="sequence"/>
142 <xs:element ref="choice"/>
143 </xs:choice>
144 </xs:choice>
145 <xs:element minOccurs="0" ref="rest"/>
146 </xs:sequence>
147 <xs:attribute name="property"/>
148 <xs:attribute name="collection">
149 <xs:simpleType>
150 <xs:restriction base="xs:token">
151 <xs:enumeration value="list"/>
152 <xs:enumeration value="set"/>
153 <xs:enumeration value="vector"/>
154 </xs:restriction>
155 </xs:simpleType>
156 </xs:attribute>
157 <xs:attribute name="supertype"/>
158 </xs:complexType>
159 </xs:element>
160 <xs:element name="element-ref">
161 <xs:complexType>
162 <xs:attribute name="name" use="required"/>
163 <xs:attribute name="property"/>
164 <xs:attribute name="collection">
165 <xs:simpleType>
166 <xs:restriction base="xs:token">
167 <xs:enumeration value="list"/>
168 <xs:enumeration value="set"/>
169 <xs:enumeration value="vector"/>
170 </xs:restriction>
171 </xs:simpleType>
172 </xs:attribute>
173 </xs:complexType>
174 </xs:element>
175 <xs:element name="sequence">
176 <xs:complexType>
177 <xs:attributeGroup ref="collection.particle.decl"/>
178 </xs:complexType>
179 </xs:element>
180 <xs:element name="choice">
181 <xs:complexType>
182 <xs:attributeGroup ref="collection.particle.decl"/>
183 </xs:complexType>
184 </xs:element>
185 <xs:element name="rest">
186 <xs:complexType>
187 <xs:attributeGroup ref="collection.particle.decl"/>
188 </xs:complexType>
189 </xs:element>
190 <xs:element name="interface">
191 <xs:complexType>
192 <xs:attribute name="name" use="required" type="java.classname.datatype"/>
193 <xs:attribute name="members" use="required">
194 <xs:simpleType>
195 <xs:restriction>
196 <xs:simpleType>
197 <xs:list itemType="java.classname.datatype"/>
198 </xs:simpleType>
199 <xs:minLength value="1"/>
200 </xs:restriction>
201 </xs:simpleType>
202 </xs:attribute>
203 </xs:complexType>
204 </xs:element>
205 <xs:attributeGroup name="collection.particle.decl">
206 <xs:attribute name="property" use="required"/>
207 <xs:attribute name="collection">
208 <xs:simpleType>
209 <xs:restriction base="xs:token">
210 <xs:enumeration value="list"/>
211 <xs:enumeration value="set"/>
212 <xs:enumeration value="vector"/>
213 </xs:restriction>
214 </xs:simpleType>
215 </xs:attribute>
216 <xs:attribute name="supertype"/>
217 </xs:attributeGroup>
218 <xs:attributeGroup name="collection.att">
219 <xs:attribute name="collection" use="required">
220 <xs:simpleType>
221 <xs:restriction base="xs:token">
222 <xs:enumeration value="list"/>
223 <xs:enumeration value="set"/>
224 <xs:enumeration value="vector"/>
225 </xs:restriction>
226 </xs:simpleType>
227 </xs:attribute>
228 </xs:attributeGroup>
229 <!-- conversion declaration -->
230 <xs:element name="global.or.local.declaration" abstract="true"/>
231 <xs:element name="conversion" substitutionGroup="global.or.local.declaration">
232 <xs:complexType>
233 <xs:attribute name="name" use="required"/>
234 <xs:attribute name="type"/>
235 <xs:attribute name="parse"/>
236 <xs:attribute name="print"/>
237 <xs:attribute name="whitespace">
238 <xs:simpleType>
239 <xs:restriction base="xs:token">
240 <xs:enumeration value="preserve"/>
241 <xs:enumeration value="replace"/>
242 <xs:enumeration value="collapse"/>
243 </xs:restriction>
244 </xs:simpleType>
245 </xs:attribute>
246 </xs:complexType>
247 </xs:element>
248 <xs:element name="enumeration" substitutionGroup="global.or.local.declaration">
249 <xs:complexType>
250 <xs:attribute name="name" use="required" type="java.classname.datatype"/>
251 <xs:attribute name="members" use="required">
252 <xs:simpleType>
253 <xs:restriction>
254 <xs:simpleType>
255 <xs:list itemType="xs:token"/>
256 </xs:simpleType>
257 <xs:minLength value="1"/>
258 </xs:restriction>
259 </xs:simpleType>
260 </xs:attribute>
261 </xs:complexType>
262 </xs:element>
263 <!-- element-value declaration -->
264 <!-- interface declaration -->
265 <!-- enumeration declaration -->
266 <!-- valid Java name -->
267 <xs:simpleType name="java.name.datatype">
268 <xs:restriction base="xs:token"/>
269 </xs:simpleType>
270 <xs:simpleType name="java.classname.datatype">
271 <xs:restriction base="java.name.datatype"/>
272 </xs:simpleType>
273 </xs:schema>