summaryrefslogtreecommitdiff
path: root/src/XmlOcafResource/XmlOcaf_SmallTypes.xsd
blob: f3df9aa113f22ca48327a5cb0df6af08cc3cfe0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<schema targetNamespace="http://www.opencascade.org/OCAF/XML"
        xmlns="http://www.w3.org/2001/XMLSchema"
	xmlns:ocaf="http://www.opencascade.org/OCAF/XML"
	elementFormDefault="qualified">

<annotation>
  <documentation xml:lang="en">
    Open Cascade Application Framework: Definition of basic types
    This file is included in XmlOcaf.xsd
    URL: $(CASROOT)/src/XmlOcafResource/XmlOcaf_SmallTypes.xsd
  </documentation>
</annotation>

<!-- DEFINITIONS OF SIMPLE BASIC TYPES -->

<simpleType name="ListOfInteger">
  <list itemType="int"/>
</simpleType>

<simpleType name="ListOfReal">
  <list itemType="double"/>
</simpleType>

<simpleType name="ListOf3Real">
  <restriction base="ocaf:ListOfReal">
    <length value="3"/>
  </restriction>
</simpleType>

<simpleType name="GuidType">
  <restriction base="string">
    <length value="36"/>
    <pattern value="[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"/>
  </restriction>
</simpleType>

<simpleType name="XPathLabel">
  <restriction base="string">
    <pattern value='/document/label(/label\[@tag=\"[1-9][0-9]*\"\])*'/>
  </restriction>
</simpleType>

<!-- DEFINITIONS OF BASIC TYPES FOR OCAF ATTRIBUTES -->

<complexType name="AbsStringAttributeType">
  <simpleContent>
    <extension base="string">
      <attribute name="id" type="positiveInteger" use="required"/>
    </extension>
  </simpleContent>
</complexType>

<complexType name="AbsIntegerAttributeType">
  <simpleContent>
    <extension base="int">
      <attribute name="id" type="positiveInteger" use="required"/>
    </extension>
  </simpleContent>
</complexType>

<complexType name="AbsRealAttributeType">
  <simpleContent>
    <extension base="double">
      <attribute name="id" type="positiveInteger" use="required"/>
    </extension>
  </simpleContent>
</complexType>

<complexType name="AbsListIntegerAttributeType">
  <simpleContent>
    <extension base="ocaf:ListOfInteger">
      <attribute name="id" type="positiveInteger" use="required"/>
    </extension>
  </simpleContent>
</complexType>

<complexType name="AbsListRealAttributeType">
  <simpleContent>
    <extension base="ocaf:ListOfReal">
      <attribute name="id" type="positiveInteger" use="required"/>
    </extension>
  </simpleContent>
</complexType>

<complexType name="AbsXPathLabelType">
  <simpleContent>
    <extension base="ocaf:XPathLabel">
      <attribute name="id" type="positiveInteger" use="required"/>
    </extension>
  </simpleContent>
</complexType>

<complexType name="AbsList3RealAttributeType">
  <simpleContent>
    <extension base="ocaf:ListOf3Real">
      <attribute name="id" type="positiveInteger" use="required"/>
    </extension>
  </simpleContent>
</complexType>

<!-- DECLARATIONS OF ABSTRACT XML ELEMENTS FOR OCAF ATTRIBUTES -->

<element name="AbstractStringAtt" type="ocaf:AbsStringAttributeType" abstract="true">
  <annotation>
    <documentation>
      Abstract type corresponding to TDF_Attribute with String content
    </documentation>
  </annotation>
</element>

<element name="AbstractIntegerAtt" type="ocaf:AbsIntegerAttributeType" abstract="true">
  <annotation>
    <documentation>
      Abstract type corresponding to TDF_Attribute with Integer content
    </documentation>
  </annotation>
</element>

<element name="AbstractRealAtt" type="ocaf:AbsRealAttributeType" abstract="true">
  <annotation>
    <documentation>
      Abstract type corresponding to TDF_Attribute with Real content
    </documentation>
  </annotation>
</element>

<element name="AbstractListIntegerAtt"
	 type="ocaf:AbsListIntegerAttributeType" abstract="true">
  <annotation>
    <documentation>
      Abstract type corresponding to TDF_Attribute with List-Of-Integer content
    </documentation>
  </annotation>
</element>

<element name="AbstractListRealAtt"
	 type="ocaf:AbsListRealAttributeType" abstract="true">
  <annotation>
    <documentation>
      Abstract type corresponding to TDF_Attribute with List-Of-Real content
    </documentation>
  </annotation>
</element>

<element name="AbstractXPathLabel" type="ocaf:AbsXPathLabelType" abstract="true">
  <annotation>
    <documentation>
      Abstract type representing XPath reference to OCAF label
    </documentation>
  </annotation>
</element>

<element name="AbstractList3RealAtt"
	 type="ocaf:AbsList3RealAttributeType" abstract="true">
  <annotation>
    <documentation>
      Abstract type corresponding to TDF_Attribute with List-Of-3-Real content
    </documentation>
  </annotation>
</element>

<!-- DECLARATION OF ABSTRACT XML ELEMENT FOR OCAF ATTRIBUTES WITH NO SIMPLE CONTENT -->

<complexType name="AbstractAttributeType">
  <complexContent>
    <restriction base="anyType">
      <attribute name="id" type="positiveInteger" use="required"/>
    </restriction>
  </complexContent>
</complexType>

<element name="AbstractAttribute" type="ocaf:AbstractAttributeType" abstract="true">
  <annotation>
    <documentation>
      Abstract type corresponding to TDF_Attribute (the ancestor of all OCAF Attributes)
    </documentation>
  </annotation>
</element>

<!--  ELEMENT **LOCATION** -->

<complexType name="Location">
  <sequence>
    <element name="datum" minOccurs="0">
      <complexType>
        <attribute name="id" type="positiveInteger" use="required"/>
        <attribute name="trsf" use="required">
          <simpleType>
            <restriction base="ocaf:ListOfReal">
              <length value="14"/>
            </restriction>
          </simpleType>
        </attribute>
      </complexType>
    </element>
    <element name="location" type="ocaf:Location" minOccurs="0"/>
  </sequence>
  <attribute name="power" type="positiveInteger" use="required"/>
  <attribute name="datum" type="positiveInteger" use="required"/>
</complexType>

<element name="location" type="ocaf:Location"/>

</schema>