/
configuration-1.0.0.xsd
79 lines (64 loc) · 3.22 KB
/
configuration-1.0.0.xsd
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
<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns="http://www.runopencode.com/xsd-schema/traitor-bundle"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.runopencode.com/xsd-schema/traitor-bundle"
elementFormDefault="qualified">
<xsd:element name="config" type="config" />
<xsd:complexType name="config">
<xsd:sequence>
<xsd:element name="use-common-traits" type="xsd:boolean" minOccurs="0" maxOccurs="1" />
<xsd:element name="inject" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType mixed="true">
<xsd:sequence>
<xsd:element name="call" type="call" minOccurs="1" maxOccurs="unbounded" />
</xsd:sequence>
<xsd:attribute name="trait" use="required" />
</xsd:complexType>
</xsd:element>
<xsd:element name="filter" minOccurs="0" maxOccurs="1">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="tag" minOccurs="0" maxOccurs="unbounded" type="xsd:string" />
<xsd:element name="namespace" minOccurs="0" maxOccurs="unbounded" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="exclude" minOccurs="0" maxOccurs="1">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="service" minOccurs="0" maxOccurs="unbounded" type="xsd:string" />
<xsd:element name="tag" minOccurs="0" maxOccurs="unbounded" type="xsd:string" />
<xsd:element name="namespace" minOccurs="0" maxOccurs="unbounded" type="xsd:string" />
<xsd:element name="class" minOccurs="0" maxOccurs="unbounded" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="call" mixed="true">
<xsd:choice maxOccurs="unbounded">
<xsd:element name="argument" type="argument" minOccurs="1" maxOccurs="unbounded" />
</xsd:choice>
<xsd:attribute name="method" type="xsd:string" use="required" />
</xsd:complexType>
<xsd:complexType name="argument" mixed="true">
<xsd:attribute name="type" type="argument_type" />
<xsd:attribute name="id" type="xsd:string" />
<xsd:attribute name="on-invalid" type="invalid_sequence" />
</xsd:complexType>
<xsd:simpleType name="argument_type">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="service" />
<xsd:enumeration value="expression" />
<xsd:enumeration value="string" />
<xsd:enumeration value="constant" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="invalid_sequence">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="null" />
<xsd:enumeration value="ignore" />
<xsd:enumeration value="exception" />
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>