-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathannotated-container.xsd
111 lines (96 loc) · 3.96 KB
/
annotated-container.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema
xml:lang="en"
version="1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="https://annotated-container.cspray.io/schema/annotated-container.xsd"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
targetNamespace="https://annotated-container.cspray.io/schema/annotated-container.xsd">
<xs:annotation>
<xs:documentation>
This Schema defines how to configure Annotated Container to bootstrap itself.
</xs:documentation>
</xs:annotation>
<xs:element name="annotatedContainer" type="annotatedContainerType">
<xs:annotation>
<xs:documentation>Root Element</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="annotatedContainerType">
<xs:all>
<xs:element name="scanDirectories" type="scanDirectoriesType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>
Define locations that should be scanned for Attributes to create your ContainerDefinition. These directories
should exist within the root of your project.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="cacheDir" type="xs:token" minOccurs="0" maxOccurs="1"/>
<xs:element name="definitionProviders" type="definitionProvidersType" minOccurs="0" maxOccurs="1" />
<xs:element name="parameterStores" type="parameterStoresType" minOccurs="0" maxOccurs="1" />
<xs:element name="observers" type="observersType" minOccurs="0" maxOccurs="1" />
<xs:element name="logging" type="loggingType" minOccurs="0" maxOccurs="1" />
</xs:all>
</xs:complexType>
<xs:complexType name="scanDirectoriesType">
<xs:all>
<xs:element name="source" type="sourceDirsType" minOccurs="1" maxOccurs="1" />
<xs:element name="vendor" type="vendorPackagesType" minOccurs="0" maxOccurs="1" />
</xs:all>
</xs:complexType>
<xs:complexType name="sourceDirsType">
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="dir" type="xs:token"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="vendorPackagesType">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="package" type="vendorPackageType" minOccurs="1" maxOccurs="1" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="vendorPackageType">
<xs:all>
<xs:element name="name" type="xs:token" />
<xs:element name="source" type="vendorSourceDirsType" minOccurs="1" maxOccurs="1" />
</xs:all>
</xs:complexType>
<xs:complexType name="vendorSourceDirsType">
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="dir" type="xs:token" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="parameterStoresType">
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="parameterStore" type="xs:token" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="observersType">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="observer" type="xs:token" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="definitionProvidersType">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="definitionProvider" type="xs:token" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="loggingType">
<xs:all>
<xs:element name="file" type="xs:token" minOccurs="0" maxOccurs="1" />
<xs:element name="stdout" type="stdoutType" minOccurs="0" maxOccurs="1" />
<xs:element name="exclude" type="excludeType" minOccurs="0" maxOccurs="1" />
</xs:all>
</xs:complexType>
<xs:complexType name="stdoutType">
<xs:simpleContent>
<xs:extension base="xs:string" />
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="excludeType">
<xs:sequence>
<xs:element name="profile" type="xs:token" minOccurs="1" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:schema>