ind2ucePIP.xsd 2.89 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?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/pip" xmlns:tns="http://www.iese.fraunhofer.de/ind2uce/3.2.46/pip" xmlns:parameter="http://www.iese.fraunhofer.de/ind2uce/3.2.46/parameter"
	xmlns:constant="http://www.iese.fraunhofer.de/ind2uce/3.2.46/constant" elementFormDefault="qualified">

	<import namespace="http://www.iese.fraunhofer.de/ind2uce/3.2.46/parameter" schemaLocation="ind2uceParameter.xsd" />
	<import namespace="http://www.iese.fraunhofer.de/ind2uce/3.2.46/constant" schemaLocation="ind2uceConstant.xsd" />

	<complexType name="PipType">
		<sequence>
			<group ref="parameter:ParamTypeGroup" minOccurs="0" maxOccurs="unbounded" />
		</sequence>
		<attribute name="method" type="string" use="required" />
		<attribute name="ttl" use="optional">
          <simpleType>
            <restriction base="string">
              <pattern value="(([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?)" />
            </restriction>
          </simpleType>
        </attribute>
	</complexType>

	<complexType name="PipStringType">
		<complexContent>
			<extension base="tns:PipType">
				<attribute name="default" type="string" use="required" />
			</extension>
		</complexContent>
	</complexType>
	<complexType name="PipBoolType">
		<complexContent>
			<extension base="tns:PipType">
				<attribute name="default" type="boolean" use="required" />
			</extension>
		</complexContent>
	</complexType>
	<complexType name="PipNumberType">
		<complexContent>
			<extension base="tns:PipType">
				<attribute name="default" type="double" use="required" />
			</extension>
		</complexContent>
	</complexType>

	<complexType name="PipListType">
		<complexContent>
			<extension base="tns:PipType">
				<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}|'[A-Za-z0-9()+,-.=@;$_!*]*')(\s*,\s*([0-9](\.([0-9])+){0,1}|'[A-Za-z0-9()+,-.=@;$_!*]*')+)*\]|\[\]"></pattern>
						</restriction>
					</simpleType>
				</attribute>
			</extension>
		</complexContent>
	</complexType>

	<complexType name="PipObjectType">
		<complexContent>
			<extension base="tns:PipType">
				<attribute name="default" type="string" use="required" />
			</extension>
		</complexContent>
	</complexType>

	<element name="string" type="tns:PipStringType" />
	<element name="boolean" type="tns:PipBoolType" />
	<element name="number" type="tns:PipNumberType" />
	<element name="list" type="tns:PipListType" />
	<element name="object" type="tns:PipObjectType" />

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


</schema>