-
Notifications
You must be signed in to change notification settings - Fork 1
/
config-0.13.xsd
218 lines (218 loc) · 8.75 KB
/
config-0.13.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://product.hubspot.com" xmlns="http://product.hubspot.com">
<xs:element name="config" type="Configuration">
<xs:annotation>
<xs:documentation source="version">0.1+</xs:documentation>
<xs:documentation source="description">
The <code>&lt;config&gt;</code> element is the root of the descriptor.
The following table lists all of the possible child elements.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="Configuration">
<xs:annotation>
<xs:documentation source="version">0.1+</xs:documentation>
<xs:documentation source="description">
The <code>&lt;config&gt;</code> element is the root of the descriptor.
The following table lists all of the possible child elements.
</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="package" type="PackageName">
<xs:annotation>
<xs:documentation source="version">0.3+</xs:documentation>
<xs:documentation source="description">
The package name of the generated Java classes.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="groups" minOccurs="0">
<xs:annotation>
<xs:documentation source="version">0.1+</xs:documentation>
<xs:documentation source="description">
This element describes all of the configuration groups to be generated.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="group" maxOccurs="unbounded" type="Group"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
<xs:simpleType name="PackageName">
<xs:restriction base="xs:string">
<xs:pattern value="[a-z]+(\.[a-z][a-z0-9]*)*" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="Group">
<xs:annotation>
<xs:documentation source="version">0.1+</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="name" type="GroupName">
<xs:annotation>
<xs:documentation source="version">0.3+</xs:documentation>
<xs:documentation source="description">
The name of the generated Java class.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="options">
<xs:annotation>
<xs:documentation source="version">0.1+</xs:documentation>
<xs:documentation source="description">
Lists all of the options within this configuration group.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="option" maxOccurs="unbounded" type="Option"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
<xs:simpleType name="GroupName">
<xs:restriction base="xs:string">
<xs:pattern value="[A-Z][a-zA-Z0-9]*" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="Option">
<xs:annotation>
<xs:documentation source="version">0.1+</xs:documentation>
<xs:documentation source="description">Description of a single configuration option.</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="name" type="OptionName">
<xs:annotation>
<xs:documentation source="version">0.1+</xs:documentation>
<xs:documentation source="description">The name of the configuration option.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="type" type="ValueType">
<xs:annotation>
<xs:documentation source="version">0.1+</xs:documentation>
<xs:documentation source="description">The type of the configuration option value.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="defaultValue" type="xs:string">
<xs:annotation>
<xs:documentation source="version">0.6+</xs:documentation>
<xs:documentation source="description">
Specifies the default value for this configuration option.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="environmentDefaults" minOccurs="0" type="EnvironmentDefaults">
<xs:annotation>
<xs:documentation source="version">0.6+</xs:documentation>
<xs:documentation source="description">
Specifies the default value(s) for this configuration option.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
<xs:simpleType name="OptionName">
<xs:restriction base="xs:string">
<xs:pattern value="[A-Z][A-Z0-9_]*" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ValueType" final="restriction" >
<xs:restriction base="xs:string">
<xs:enumeration value="STRING" />
<xs:enumeration value="INTEGER" />
<xs:enumeration value="LONG" />
<xs:enumeration value="DOUBLE" />
<xs:enumeration value="BOOLEAN" />
<xs:enumeration value="DURATION" />
<xs:enumeration value="STRING_LIST" />
<xs:enumeration value="INTEGER_LIST" />
<xs:enumeration value="DURATION_LIST" />
<xs:enumeration value="STRING_SET" />
<xs:enumeration value="INTEGER_SET" />
<xs:enumeration value="DURATION_SET" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="EnvironmentDefaults">
<xs:annotation>
<xs:documentation source="version">0.6+</xs:documentation>
<xs:documentation source="description">
Allows you to specify different defaults for this configuration option
based on the environment and/or application type.
</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="all" minOccurs="0" type="EnvironmentDefaultWithoutAny">
<xs:annotation>
<xs:documentation source="version">0.6+</xs:documentation>
<xs:documentation source="description">
Allows you to specify a different default based on application type.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="qa" minOccurs="0" type="EnvironmentDefaultWithAny">
<xs:annotation>
<xs:documentation source="version">0.6+</xs:documentation>
<xs:documentation source="description">
Allows you to specify a different default in QA based on application type.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="prod" minOccurs="0" type="EnvironmentDefaultWithAny">
<xs:annotation>
<xs:documentation source="version">0.6+</xs:documentation>
<xs:documentation source="description">
Allows you to specify a different default in Prod based on application type.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
<xs:complexType name="EnvironmentDefaultWithoutAny">
<xs:annotation>
<xs:documentation source="version">0.6+</xs:documentation>
<xs:documentation source="description">
Specifies the default value for this environment based on application type.
</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="api" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">0.7+</xs:documentation>
<xs:documentation source="description">
The default value if the application type is API.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
<xs:complexType name="EnvironmentDefaultWithAny">
<xs:annotation>
<xs:documentation source="version">0.10+</xs:documentation>
<xs:documentation source="description">
Specifies the default value for this environment based on application type.
</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="any" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">0.6+</xs:documentation>
<xs:documentation source="description">
The default value that matches any application type.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="api" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">0.7+</xs:documentation>
<xs:documentation source="description">
The default value if the application type is API.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
</xs:schema>