1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <!-- |
---|
3 | Licensed to the Apache Software Foundation (ASF) under one or more |
---|
4 | contributor license agreements. See the NOTICE file distributed with |
---|
5 | this work for additional information regarding copyright ownership. |
---|
6 | The ASF licenses this file to You under the Apache License, Version 2.0 |
---|
7 | (the "License"); you may not use this file except in compliance with |
---|
8 | the License. You may obtain a copy of the License at |
---|
9 | |
---|
10 | http://www.apache.org/licenses/LICENSE-2.0 |
---|
11 | |
---|
12 | Unless required by applicable law or agreed to in writing, software |
---|
13 | distributed under the License is distributed on an "AS IS" BASIS, |
---|
14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
15 | See the License for the specific language governing permissions and |
---|
16 | limitations under the License. |
---|
17 | --> |
---|
18 | <xs:schema targetNamespace="http://java.sun.com/xml/ns/jdo/jdoquery" |
---|
19 | xmlns="http://java.sun.com/xml/ns/jdo/jdoquery" |
---|
20 | xmlns:xs="http://www.w3.org/2001/XMLSchema" |
---|
21 | version="3.0"> |
---|
22 | <xs:element name="jdoquery"> |
---|
23 | <xs:complexType> |
---|
24 | <xs:choice maxOccurs="unbounded"> |
---|
25 | <xs:element ref="extension"/> |
---|
26 | <xs:element ref="package"/> |
---|
27 | <xs:element ref="query"/> |
---|
28 | </xs:choice> |
---|
29 | </xs:complexType> |
---|
30 | </xs:element> |
---|
31 | <xs:element name="package"> |
---|
32 | <xs:complexType> |
---|
33 | <xs:choice maxOccurs="unbounded"> |
---|
34 | <xs:element ref="extension"/> |
---|
35 | <xs:element ref="interface"/> |
---|
36 | <xs:element ref="class"/> |
---|
37 | </xs:choice> |
---|
38 | <xs:attributeGroup ref="attlist.package"/> |
---|
39 | </xs:complexType> |
---|
40 | </xs:element> |
---|
41 | <xs:attributeGroup name="attlist.package"> |
---|
42 | <xs:attribute name="name" default=""/> |
---|
43 | </xs:attributeGroup> |
---|
44 | <xs:element name="interface"> |
---|
45 | <xs:complexType> |
---|
46 | <xs:choice minOccurs="0" maxOccurs="unbounded"> |
---|
47 | <xs:element ref="extension"/> |
---|
48 | <xs:element ref="query"/> |
---|
49 | </xs:choice> |
---|
50 | <xs:attributeGroup ref="attlist.interface"/> |
---|
51 | </xs:complexType> |
---|
52 | </xs:element> |
---|
53 | <xs:attributeGroup name="attlist.interface"> |
---|
54 | <xs:attribute name="name" use="required"/> |
---|
55 | </xs:attributeGroup> |
---|
56 | <xs:element name="class"> |
---|
57 | <xs:complexType> |
---|
58 | <xs:choice minOccurs="0" maxOccurs="unbounded"> |
---|
59 | <xs:element ref="extension"/> |
---|
60 | <xs:element ref="query"/> |
---|
61 | </xs:choice> |
---|
62 | <xs:attributeGroup ref="attlist.class"/> |
---|
63 | </xs:complexType> |
---|
64 | </xs:element> |
---|
65 | <xs:attributeGroup name="attlist.class"> |
---|
66 | <xs:attribute name="name" use="required"/> |
---|
67 | </xs:attributeGroup> |
---|
68 | <xs:element name="query"> |
---|
69 | <xs:complexType mixed="true"> |
---|
70 | <xs:sequence> |
---|
71 | <xs:element minOccurs="0" maxOccurs="unbounded" ref="extension"/> |
---|
72 | </xs:sequence> |
---|
73 | <xs:attributeGroup ref="attlist.query"/> |
---|
74 | </xs:complexType> |
---|
75 | </xs:element> |
---|
76 | <xs:attributeGroup name="attlist.query"> |
---|
77 | <xs:attribute name="name" use="required"/> |
---|
78 | <xs:attribute name="language"/> |
---|
79 | <xs:attribute name="unmodifiable" default="false"> |
---|
80 | <xs:simpleType> |
---|
81 | <xs:restriction base="xs:token"> |
---|
82 | <xs:enumeration value="true"/> |
---|
83 | <xs:enumeration value="false"/> |
---|
84 | </xs:restriction> |
---|
85 | </xs:simpleType> |
---|
86 | </xs:attribute> |
---|
87 | <xs:attribute name="unique"> |
---|
88 | <xs:simpleType> |
---|
89 | <xs:restriction base="xs:token"> |
---|
90 | <xs:enumeration value="true"/> |
---|
91 | <xs:enumeration value="false"/> |
---|
92 | </xs:restriction> |
---|
93 | </xs:simpleType> |
---|
94 | </xs:attribute> |
---|
95 | <xs:attribute name="result-class"/> |
---|
96 | <xs:attribute name="datastore-read-timeout-millis"/> |
---|
97 | <xs:attribute name="datastore-write-timeout-millis"/> |
---|
98 | </xs:attributeGroup> |
---|
99 | <xs:element name="extension"> |
---|
100 | <xs:complexType> |
---|
101 | <xs:complexContent> |
---|
102 | <xs:extension base="any"> |
---|
103 | <xs:attributeGroup ref="attlist.extension"/> |
---|
104 | </xs:extension> |
---|
105 | </xs:complexContent> |
---|
106 | </xs:complexType> |
---|
107 | </xs:element> |
---|
108 | <xs:attributeGroup name="attlist.extension"> |
---|
109 | <xs:attribute name="vendor-name" use="required"/> |
---|
110 | <xs:attribute name="key"/> |
---|
111 | <xs:attribute name="value"/> |
---|
112 | </xs:attributeGroup> |
---|
113 | <xs:complexType name="any" mixed="true"> |
---|
114 | <xs:sequence> |
---|
115 | <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/> |
---|
116 | </xs:sequence> |
---|
117 | </xs:complexType> |
---|
118 | </xs:schema> |
---|