blob: c08737407ad962588329ed9233aaf9f10fd1757b [file] [log] [blame]
ramangrover29f18d4562013-02-15 23:56:00 +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
ramangrover29f18d4562013-02-15 23:56:00 +000022<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:eg="patterns" targetNamespace="patterns">
23
24
25<!-- definition of simple types -->
26<xs:element name="maxOccurs" type = "xs:int"/>
27<xs:element name="pargs" type="xs:string"/>
28<xs:element name="absvalue" type="xs:string"/>
29<xs:element name="unit" type="xs:string"/>
30<xs:element name="type" type="xs:string"/>
31<xs:element name="min" type="xs:string"/>
32<xs:element name="max" type="xs:string"/>
33<xs:element name="abs" type="xs:string"/>
34<xs:element name="set" type="xs:string"/>
35<xs:element name="exclude" type="xs:string"/>
36<xs:element name="reuse" type="xs:boolean"/>
37<!-- definition of attributes -->
38
39<!-- definition of complex elements -->
40
41<xs:element name="range">
42 <xs:complexType>
43 <xs:sequence>
44 <xs:element ref="eg:set"/>
45 <xs:element ref="eg:exclude" minOccurs="0"/>
46 <xs:element ref="eg:reuse" minOccurs="0"/>
47 </xs:sequence>
48 </xs:complexType>
49</xs:element>
50
51<xs:element name="minmax">
52 <xs:complexType>
53 <xs:sequence>
54 <xs:element ref="eg:min"/>
55 <xs:element ref="eg:max"/>
56 </xs:sequence>
57 </xs:complexType>
58</xs:element>
59
60
61<xs:element name="random">
62 <xs:complexType>
63 <xs:sequence>
64 <xs:element ref="eg:minmax" minOccurs="0"/>
65 <xs:element ref="eg:range" minOccurs="0"/>
66 </xs:sequence>
67 </xs:complexType>
68</xs:element>
69
70<xs:element name="value">
71 <xs:complexType>
72 <xs:sequence>
73 <xs:element ref="eg:random" minOccurs="0"/>
74 <xs:element ref="eg:absvalue" minOccurs="0"/>
75 </xs:sequence>
76 </xs:complexType>
77</xs:element>
78
79<xs:element name="nodeid">
80 <xs:complexType>
81 <xs:sequence>
82 <xs:element ref="eg:value"/>
83 </xs:sequence>
84 </xs:complexType>
85</xs:element>
86
87<xs:element name="period">
88 <xs:complexType>
89 <xs:sequence>
90 <xs:element ref="eg:absvalue"/>
91 <xs:element ref="eg:unit"/>
92 </xs:sequence>
93 </xs:complexType>
94</xs:element>
95
96<xs:element name="delay">
97 <xs:complexType>
98 <xs:sequence>
99 <xs:element ref="eg:value"/>
100 <xs:element ref="eg:unit"/>
101 </xs:sequence>
102 </xs:complexType>
103</xs:element>
104
105<xs:element name="event">
106 <xs:complexType>
107 <xs:sequence>
108 <xs:element ref="eg:type"/>
109 <xs:element ref="eg:nodeid"/>
110 <xs:element ref="eg:pargs"/>
111 </xs:sequence>
112 </xs:complexType>
113</xs:element>
114
115<xs:element name="pattern">
116 <xs:complexType>
117 <xs:sequence>
118 <xs:element ref="eg:delay"/>
119 <xs:element ref="eg:maxOccurs" maxOccurs="1" minOccurs="0"/>
120 <xs:element ref="eg:period"/>
121 <xs:element ref="eg:event"/>
122 </xs:sequence>
123 </xs:complexType>
124</xs:element>
125
126<xs:element name="patterns">
127 <xs:complexType>
128 <xs:sequence>
129 <xs:element ref="eg:pattern" maxOccurs="unbounded"/>
130 </xs:sequence>
131 </xs:complexType>
132</xs:element>
133
134</xs:schema>