ramangrover29@gmail.com | 5f248e1 | 2013-04-11 01:03:09 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="ISO-8859-1" ?> |
Till Westmann | 5b431ca | 2015-10-01 19:16:11 -0700 | [diff] [blame] | 2 | |
| 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 Grover | 47c92e7 | 2013-10-03 19:01:15 +0530 | [diff] [blame] | 22 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| 23 | xmlns:lib="library" targetNamespace="library" elementFormDefault="qualified"> |
ramangrover29@gmail.com | 5f248e1 | 2013-04-11 01:03:09 +0000 | [diff] [blame] | 24 | |
Raman Grover | 47c92e7 | 2013-10-03 19:01:15 +0530 | [diff] [blame] | 25 | <!-- 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 Grover | 47c92e7 | 2013-10-03 19:01:15 +0530 | [diff] [blame] | 32 | <xs:element name="factory_class" type="xs:string" /> |
ramangrover29@gmail.com | 5f248e1 | 2013-04-11 01:03:09 +0000 | [diff] [blame] | 33 | |
ramangrover29@gmail.com | 5f248e1 | 2013-04-11 01:03:09 +0000 | [diff] [blame] | 34 | |
Raman Grover | 47c92e7 | 2013-10-03 19:01:15 +0530 | [diff] [blame] | 35 | <!-- 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 Grover | 47c92e7 | 2013-10-03 19:01:15 +0530 | [diff] [blame] | 61 | </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 Grover | 7696def | 2013-12-02 10:34:07 +0530 | [diff] [blame] | 78 | <xs:element ref="lib:libraryAdapters" minOccurs="0" /> |
Raman Grover | 47c92e7 | 2013-10-03 19:01:15 +0530 | [diff] [blame] | 79 | </xs:sequence> |
| 80 | </xs:complexType> |
| 81 | </xs:element> |
ramangrover29@gmail.com | 5f248e1 | 2013-04-11 01:03:09 +0000 | [diff] [blame] | 82 | |
| 83 | </xs:schema> |