blob: 6ffd967f8d27a4fbe0934f34670231dccd89957e [file] [log] [blame]
ramangrover29@gmail.com5f248e12013-04-11 01:03:09 +00001<?xml version="1.0" encoding="ISO-8859-1" ?>
Till Westmann5b431ca2015-10-01 19:16:11 -07002
3<!--
4 ! Licensed to the Apache Software Foundation (ASF) under one
5 ! or more contributor license agreements. See the NOTICE file
6 ! distributed with this work for additional information
7 ! regarding copyright ownership. The ASF licenses this file
8 ! to you under the Apache License, Version 2.0 (the
9 ! "License"); you may not use this file except in compliance
10 ! with the License. You may obtain a copy of the License at
11 !
12 ! http://www.apache.org/licenses/LICENSE-2.0
13 !
14 ! Unless required by applicable law or agreed to in writing,
15 ! software distributed under the License is distributed on an
16 ! "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 ! KIND, either express or implied. See the License for the
18 ! specific language governing permissions and limitations
19 ! under the License.
20 !-->
21
Raman Grover47c92e72013-10-03 19:01:15 +053022<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
23 xmlns:lib="library" targetNamespace="library" elementFormDefault="qualified">
ramangrover29@gmail.com5f248e12013-04-11 01:03:09 +000024
Raman Grover47c92e72013-10-03 19:01:15 +053025 <!-- definition of simple types -->
26 <xs:element name="language" type="xs:string" />
27 <xs:element name="name" type="xs:string" />
28 <xs:element name="arguments" type="xs:string" />
29 <xs:element name="return_type" type="xs:string" />
30 <xs:element name="function_type" type="xs:string" />
31 <xs:element name="definition" type="xs:string" />
Raman Grover47c92e72013-10-03 19:01:15 +053032 <xs:element name="factory_class" type="xs:string" />
ramangrover29@gmail.com5f248e12013-04-11 01:03:09 +000033
ramangrover29@gmail.com5f248e12013-04-11 01:03:09 +000034
Raman Grover47c92e72013-10-03 19:01:15 +053035 <!-- definition of complex elements -->
36 <xs:element name="libraryFunction">
37 <xs:complexType>
38 <xs:sequence>
39 <xs:element ref="lib:name" />
40 <xs:element ref="lib:function_type" />
41 <xs:element ref="lib:arguments" />
42 <xs:element ref="lib:return_type" />
43 <xs:element ref="lib:definition" />
44 </xs:sequence>
45 </xs:complexType>
46 </xs:element>
47
48 <xs:element name="libraryFunctions">
49 <xs:complexType>
50 <xs:sequence>
51 <xs:element ref="lib:libraryFunction" maxOccurs="unbounded" />
52 </xs:sequence>
53 </xs:complexType>
54 </xs:element>
55
56 <xs:element name="libraryAdapter">
57 <xs:complexType>
58 <xs:sequence>
59 <xs:element ref="lib:name" />
60 <xs:element ref="lib:factory_class" />
Raman Grover47c92e72013-10-03 19:01:15 +053061 </xs:sequence>
62 </xs:complexType>
63 </xs:element>
64
65 <xs:element name="libraryAdapters">
66 <xs:complexType>
67 <xs:sequence>
68 <xs:element ref="lib:libraryAdapter" maxOccurs="unbounded" />
69 </xs:sequence>
70 </xs:complexType>
71 </xs:element>
72
73 <xs:element name="externalLibrary">
74 <xs:complexType>
75 <xs:sequence>
76 <xs:element ref="lib:language" />
77 <xs:element ref="lib:libraryFunctions" minOccurs="0" />
Raman Grover7696def2013-12-02 10:34:07 +053078 <xs:element ref="lib:libraryAdapters" minOccurs="0" />
Raman Grover47c92e72013-10-03 19:01:15 +053079 </xs:sequence>
80 </xs:complexType>
81 </xs:element>
ramangrover29@gmail.com5f248e12013-04-11 01:03:09 +000082
83</xs:schema>