-
Notifications
You must be signed in to change notification settings - Fork 1
/
config-0.5.xsd
157 lines (157 loc) · 6.18 KB
/
config-0.5.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
<?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="defaults" type="Defaults">
<xs:annotation>
<xs:documentation source="version">0.1+</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="int" />
<xs:enumeration value="duration" />
<xs:enumeration value="string" />
<xs:enumeration value="bool" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="Defaults">
<xs:annotation>
<xs:documentation source="version">0.1+</xs:documentation>
<xs:documentation source="description">
Specifies the default value(s) for this configuration option.
</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="global" type="xs:string">
<xs:annotation>
<xs:documentation source="version">0.1+</xs:documentation>
<xs:documentation source="description">
The global default value for the configuration option.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="qa" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">0.1+</xs:documentation>
<xs:documentation source="description">
The default value for the configuration option when running in the QA environment.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="prod" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">0.1+</xs:documentation>
<xs:documentation source="description">
The default value for the configuration option when running in the Prod environment.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
</xs:schema>