ind2uceEvent.xsd 2.29 KB
Newer Older
Raj Shah's avatar
Raj Shah committed
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
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.iese.fraunhofer.de/ind2uce/3.2.46/event" xmlns:tns="http://www.iese.fraunhofer.de/ind2uce/3.2.46/event"
	elementFormDefault="qualified">

	<complexType name="EventStringType">
		<attribute name="eventParameter" type="string" use="required" />
		<attribute name="default" type="string" use="required" />
		<attribute name="jsonPathQuery" type="string" use="optional" />
	</complexType>

	<complexType name="EventBoolType">
		<attribute name="eventParameter" type="string" use="required" />
		<attribute name="default" type="boolean" use="required" />
		<attribute name="jsonPathQuery" type="string" use="optional" />
	</complexType>

	<complexType name="EventNumberType">
		<attribute name="eventParameter" type="string" use="required" />
		<attribute name="default" type="double" use="required" />
		<attribute name="jsonPathQuery" type="string" use="optional" />
	</complexType>

	<complexType name="EventObjectType">
		<attribute name="eventParameter" type="string" use="required" />
		<attribute name="default" type="string" use="required" />
		<attribute name="jsonPathQuery" type="string" use="optional" />
	</complexType>

	<complexType name="EventListType">
		<attribute name="eventParameter" type="string" use="required" />
		<attribute name="default" use="required">
			<simpleType>
				<restriction base="string">
					<!-- comma seperated array, e.g., [1,2.0,'adf'] String in '', floating point with x.y -->
					<pattern value="\[([0-9](\.([0-9])+){0,1}|&quot;[A-Za-z0-9()+,-.=@;$_!*]*&quot;)(\s*,\s*([0-9](\.([0-9])+){0,1}|&quot;[A-Za-z0-9()+,-.=@;$_!*]*&quot;)+)*\]|\[\]"></pattern>
				</restriction>
			</simpleType>
		</attribute>
		<attribute name="jsonPathQuery" type="string" use="optional" />
	</complexType>
	
	<element name="string" type="tns:EventStringType" />
	<element name="boolean" type="tns:EventBoolType" />
	<element name="number" type="tns:EventNumberType" />
	<element name="object" type="tns:EventObjectType" />
	<element name="list" type="tns:EventListType" />

	<group name="eventGroup">
		<choice>
			<element ref="tns:string" />
			<element ref="tns:number" />
			<element ref="tns:boolean" />
			<element ref="tns:object" />
			<element ref="tns:list" />
		</choice>
	</group>

</schema>