/
job.xsd
281 lines (258 loc) · 8.36 KB
/
job.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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://eobjects.org/analyzerbeans/job/1.0"
xmlns:ab="http://eobjects.org/analyzerbeans/job/1.0"
elementFormDefault="qualified">
<element name="job">
<complexType>
<complexContent>
<extension base="ab:jobType">
</extension>
</complexContent>
</complexType>
</element>
<complexType name="jobType">
<sequence>
<element name="job-metadata" type="ab:jobMetadataType"
minOccurs="0" maxOccurs="1" />
<element name="source" type="ab:sourceType" minOccurs="0"
maxOccurs="1" />
<element name="transformation" type="ab:transformationType"
minOccurs="0" maxOccurs="1" />
<element name="analysis" type="ab:analysisType" minOccurs="0"
maxOccurs="1" />
</sequence>
</complexType>
<complexType name="jobMetadataType">
<all>
<element name="job-name" type="normalizedString" minOccurs="0"
maxOccurs="1" />
<element name="job-description" type="normalizedString"
minOccurs="0" maxOccurs="1" />
<element name="job-version" type="normalizedString"
minOccurs="0" maxOccurs="1" />
<element name="author" type="normalizedString" minOccurs="0"
maxOccurs="1" />
<element name="created-date" type="date" minOccurs="0"
maxOccurs="1" />
<element name="updated-date" type="date" minOccurs="0"
maxOccurs="1" />
<element name="metadata-properties" type="ab:metadataProperties"
minOccurs="0" maxOccurs="1" />
</all>
</complexType>
<complexType name="metadataProperties">
<sequence>
<element name="property" minOccurs="0" maxOccurs="unbounded">
<complexType>
<simpleContent>
<extension base="string">
<attribute type="string" name="name" />
</extension>
</simpleContent>
</complexType>
</element>
</sequence>
</complexType>
<complexType name="sourceType">
<sequence>
<element name="data-context" type="ab:dataContextType"
minOccurs="0" maxOccurs="1" />
<element name="columns" type="ab:columnsType" minOccurs="0"
maxOccurs="1" />
<element name="variables" type="ab:variablesType" minOccurs="0"
maxOccurs="1" />
</sequence>
</complexType>
<complexType name="transformationType">
<choice minOccurs="0" maxOccurs="unbounded">
<element name="transformer" type="ab:transformerType"
minOccurs="0" maxOccurs="unbounded" />
<element name="filter" type="ab:filterType" minOccurs="0"
maxOccurs="unbounded" />
</choice>
</complexType>
<complexType name="analysisType">
<choice minOccurs="1" maxOccurs="unbounded">
<element name="analyzer" type="ab:analyzerType" minOccurs="0"
maxOccurs="unbounded" />
</choice>
</complexType>
<complexType name="dataContextType">
<attribute name="ref" type="token" use="required" />
</complexType>
<complexType name="columnsType">
<sequence>
<element name="column" type="ab:columnType" minOccurs="1"
maxOccurs="unbounded" />
</sequence>
</complexType>
<complexType name="columnType">
<attribute name="id" type="token" use="required" />
<attribute name="path" use="required">
<annotation>
<documentation>
The path to the column. The path is expected to be
qualified with prepending dots (.) to represent the schema and
table names of the column.
</documentation>
</annotation>
</attribute>
<attribute name="type" type="string" use="optional" />
</complexType>
<complexType name="variablesType">
<sequence>
<element name="variable" type="ab:variableType" minOccurs="1"
maxOccurs="unbounded">
<annotation>
<documentation>
Represents a job-level variable that can be
referenced by certain properties, allowing for centralized
management of important configuration elements.
</documentation>
</annotation>
</element>
</sequence>
</complexType>
<complexType name="variableType">
<attribute name="id" type="token" use="required" />
<attribute name="value" type="string" use="required">
<annotation>
<documentation>
Default value for this variable.
</documentation>
</annotation>
</attribute>
</complexType>
<complexType name="componentType">
<sequence>
<element name="descriptor" type="ab:descriptorType"
minOccurs="1" maxOccurs="1" />
<element name="metadata-properties" type="ab:metadataProperties"
minOccurs="0" maxOccurs="1" />
<element name="properties" type="ab:configuredPropertiesType"
minOccurs="0" maxOccurs="1" />
<element name="input" type="ab:inputType" minOccurs="0"
maxOccurs="unbounded" />
<element name="output-data-stream" type="ab:outputDataStreamType"
minOccurs="0" maxOccurs="unbounded" />
</sequence>
<attribute name="requires" type="token" use="optional">
<annotation>
<documentation>
The description of the component requirement for
execution of this component. Requirements are
applied transitively
to successive components. Use the keyword
'_all_' to override
transitive behaviour and don't apply any
requirements
</documentation>
</annotation>
</attribute>
<attribute name="name" type="string" use="optional" />
</complexType>
<complexType name="descriptorType">
<attribute name="ref" type="token" use="required" />
</complexType>
<complexType name="outputDataStreamType">
<sequence>
<element name="job" type="ab:jobType" />
</sequence>
<attribute name="name" type="string" use="required" />
</complexType>
<complexType name="transformerType">
<complexContent>
<extension base="ab:componentType">
<sequence>
<element name="output" type="ab:outputType" minOccurs="1"
maxOccurs="unbounded" />
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="filterType">
<complexContent>
<extension base="ab:componentType">
<sequence>
<element name="outcome" type="ab:outcomeType" minOccurs="1"
maxOccurs="unbounded" />
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="analyzerType">
<complexContent>
<extension base="ab:componentType">
</extension>
</complexContent>
</complexType>
<complexType name="inputType">
<attribute name="ref" type="token" use="optional">
<annotation>
<documentation>
Reference for a column id defined elsewhere in the
job.
</documentation>
</annotation>
</attribute>
<attribute name="value" type="token" use="optional">
<annotation>
<documentation>
Defines a constant value to put as a placeholder for
a column in the datastore.
</documentation>
</annotation>
</attribute>
<attribute name="name" type="token" use="optional" />
</complexType>
<complexType name="outputType">
<attribute name="id" type="token" use="required" />
<attribute name="name" type="string" use="optional" />
<attribute name="hidden" type="boolean" use="optional" />
</complexType>
<complexType name="outcomeType">
<attribute name="id" type="token" use="required" />
<attribute name="category" type="string" use="required" />
</complexType>
<complexType name="configuredPropertiesType">
<sequence>
<element name="property" minOccurs="0" maxOccurs="unbounded">
<complexType>
<simpleContent>
<extension base="string">
<attribute name="name" type="string" use="required" />
<attribute name="template" type="string" use="optional">
<annotation>
<documentation>
Contains a reference to one or more variables.A reference to the id of
a
variable (defined in the source section). If a ref is defined, the
value of the
variable will be inserted instead of the value of this
property element.
</documentation>
</annotation>
</attribute>
<attribute name="ref" type="token" use="optional">
<annotation>
<documentation>
A reference to the id of a variable (defined in
the source section). If a ref is defined, the value of the
variable will be inserted instead of the value of this
property
element.
</documentation>
</annotation>
</attribute>
<attribute name="value" type="string" use="optional">
<annotation>
<documentation>The value of the property.</documentation>
</annotation>
</attribute>
</extension>
</simpleContent>
</complexType>
</element>
</sequence>
</complexType>
</schema>