karavan-core 4.8.0 → 99.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of karavan-core might be problematic. Click here for more details.
- package/index.js +3 -0
- package/package.json +8 -58
- package/.bebelrc +0 -3
- package/.mocharc.json +0 -11
- package/.prettierignore +0 -9
- package/.prettierrc +0 -14
- package/src/core/api/CamelDefinitionApi.ts +0 -3271
- package/src/core/api/CamelDefinitionApiExt.ts +0 -757
- package/src/core/api/CamelDefinitionYaml.ts +0 -412
- package/src/core/api/CamelDefinitionYamlStep.ts +0 -4733
- package/src/core/api/CamelDisplayUtil.ts +0 -143
- package/src/core/api/CamelUtil.ts +0 -360
- package/src/core/api/ComponentApi.ts +0 -368
- package/src/core/api/KameletApi.ts +0 -147
- package/src/core/api/MainConfigurationApi.ts +0 -47
- package/src/core/api/ProjectModelApi.ts +0 -75
- package/src/core/api/SpiBeanApi.ts +0 -104
- package/src/core/api/TemplateApi.ts +0 -58
- package/src/core/api/TopologyUtils.ts +0 -392
- package/src/core/api/VariableUtil.ts +0 -104
- package/src/core/model/CamelDefinition.ts +0 -3783
- package/src/core/model/CamelMetadata.ts +0 -2714
- package/src/core/model/ComponentModels.ts +0 -106
- package/src/core/model/IntegrationDefinition.ts +0 -188
- package/src/core/model/KameletModels.ts +0 -223
- package/src/core/model/MainConfigurationModel.ts +0 -37
- package/src/core/model/ProjectModel.ts +0 -43
- package/src/core/model/SpiBeanModels.ts +0 -53
- package/src/core/model/TopologyDefinition.ts +0 -117
- package/test/addStep.spec.ts +0 -124
- package/test/addStep1.yaml +0 -27
- package/test/allowableValues.camel.yaml +0 -19
- package/test/allowableValues.spec.ts +0 -30
- package/test/avro-serialize-action.kamelet.yaml +0 -70
- package/test/beans.spec.ts +0 -92
- package/test/beans1.yaml +0 -36
- package/test/beans2.yaml +0 -42
- package/test/beans3.yaml +0 -7
- package/test/checkRequired.spec.ts +0 -53
- package/test/circuitBreaker.spec.ts +0 -57
- package/test/circuitBreaker.yaml +0 -19
- package/test/cloneDefinition.spec.ts +0 -106
- package/test/createKamelet.spec.ts +0 -38
- package/test/cxf.json +0 -615
- package/test/cxf.spec.ts +0 -44
- package/test/cxf.yaml +0 -15
- package/test/deleteStep.spec.ts +0 -74
- package/test/demo.spec.ts +0 -49
- package/test/demo.yaml +0 -32
- package/test/doCatchOnWhen.camel.yaml +0 -20
- package/test/doCatchOnWhen.spec.ts +0 -36
- package/test/errorHandler.spec.ts +0 -38
- package/test/errorHandler1.yaml +0 -27
- package/test/expression.spec.ts +0 -55
- package/test/findStep.spec.ts +0 -112
- package/test/findStep.yaml +0 -65
- package/test/getElementProperties.spec.ts +0 -32
- package/test/getElementPropertiesByName.spec.ts +0 -31
- package/test/getExpressionLanguage.spec.ts +0 -40
- package/test/hasElementWithId.camel.yaml +0 -98
- package/test/hasElementWithId.spec.ts +0 -57
- package/test/hasElementWithId1.camel.yaml +0 -16
- package/test/hasElementWithIdError.camel.yaml +0 -98
- package/test/integration.spec.ts +0 -60
- package/test/integration1.yaml +0 -24
- package/test/integration2.yaml +0 -23
- package/test/integrationToYaml.spec.ts +0 -51
- package/test/intercept.spec.ts +0 -62
- package/test/intercept.yaml +0 -19
- package/test/is-not-integration.yaml +0 -5114
- package/test/isIntegration.spec.ts +0 -45
- package/test/kamelet.spec.ts +0 -61
- package/test/metadata/components.json +0 -697
- package/test/metadata/kamelets.yaml +0 -23414
- package/test/metadata/spiBeans.json +0 -3094
- package/test/multiObjectProperties.spec.ts +0 -46
- package/test/multiObjectProperties1.yaml +0 -19
- package/test/multiple.spec.ts +0 -38
- package/test/multiple.yaml +0 -29
- package/test/openapi.spec.ts +0 -48
- package/test/openapi.yaml +0 -7
- package/test/placeholder.spec.ts +0 -32
- package/test/placeholder.yaml +0 -133
- package/test/plain-try-catch.yaml +0 -31
- package/test/plain.spec.ts +0 -72
- package/test/plain1.yaml +0 -22
- package/test/plain2.yaml +0 -13
- package/test/plain3.yaml +0 -5
- package/test/plain4.yaml +0 -5
- package/test/postgresql-source.kamelet.yaml +0 -113
- package/test/restConfigDsl.yaml +0 -15
- package/test/restDsl.spec.ts +0 -83
- package/test/restDsl.yaml +0 -29
- package/test/routes.spec.ts +0 -37
- package/test/routes1.yaml +0 -31
- package/test/supported-components.json +0 -1221
- package/test/supportedComponents.spec.ts +0 -34
- package/test/template1.AggregationStrategy.java +0 -21
- package/test/template1.Processor.java +0 -13
- package/test/template2.AggregationStrategy.java +0 -21
- package/test/template2.Processor.java +0 -13
- package/test/templateApi.spec.ts +0 -45
- package/test/timer-source.kamelet.yaml +0 -75
- package/test/tod.spec.ts +0 -31
- package/test/tod.yaml +0 -9
- package/test/topology.spec.ts +0 -51
- package/test/topology1.camel.yaml +0 -56
- package/test/topology2.camel.yaml +0 -44
- package/test/topology3.camel.yaml +0 -27
- package/test/tsconfig.testing.json +0 -14
- package/test/updateStep.spec.ts +0 -72
- package/test/variable1.camel.yaml +0 -42
- package/test/variable2.camel.yaml +0 -42
- package/test/variables.spec.ts +0 -34
- package/tsconfig.json +0 -34
@@ -1,3271 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Licensed to the Apache Software Foundation (ASF) under one or more
|
3
|
-
* contributor license agreements. See the NOTICE file distributed with
|
4
|
-
* this work for additional information regarding copyright ownership.
|
5
|
-
* The ASF licenses this file to You under the Apache License, Version 2.0
|
6
|
-
* (the "License"); you may not use this file except in compliance with
|
7
|
-
* the License. You may obtain a copy of the License at
|
8
|
-
*
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
*
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
* See the License for the specific language governing permissions and
|
15
|
-
* limitations under the License.
|
16
|
-
*/
|
17
|
-
|
18
|
-
/**
|
19
|
-
* Generated by karavan build tools - do NOT edit this file!
|
20
|
-
*/
|
21
|
-
import {CamelElement} from "../model/IntegrationDefinition";
|
22
|
-
import {
|
23
|
-
ProcessorDefinition,
|
24
|
-
BeansDeserializer,
|
25
|
-
ErrorHandlerDeserializer,
|
26
|
-
OutputAwareFromDefinition,
|
27
|
-
AggregateDefinition,
|
28
|
-
BeanDefinition,
|
29
|
-
BeanFactoryDefinition,
|
30
|
-
CatchDefinition,
|
31
|
-
ChoiceDefinition,
|
32
|
-
CircuitBreakerDefinition,
|
33
|
-
ClaimCheckDefinition,
|
34
|
-
ContextScanDefinition,
|
35
|
-
ConvertBodyDefinition,
|
36
|
-
ConvertHeaderDefinition,
|
37
|
-
ConvertVariableDefinition,
|
38
|
-
DataFormatDefinition,
|
39
|
-
DelayDefinition,
|
40
|
-
DynamicRouterDefinition,
|
41
|
-
EnrichDefinition,
|
42
|
-
ErrorHandlerDefinition,
|
43
|
-
ExpressionSubElementDefinition,
|
44
|
-
FaultToleranceConfigurationDefinition,
|
45
|
-
FilterDefinition,
|
46
|
-
FinallyDefinition,
|
47
|
-
FromDefinition,
|
48
|
-
GlobalOptionDefinition,
|
49
|
-
GlobalOptionsDefinition,
|
50
|
-
IdempotentConsumerDefinition,
|
51
|
-
InputTypeDefinition,
|
52
|
-
InterceptDefinition,
|
53
|
-
InterceptFromDefinition,
|
54
|
-
InterceptSendToEndpointDefinition,
|
55
|
-
KameletDefinition,
|
56
|
-
LoadBalanceDefinition,
|
57
|
-
LogDefinition,
|
58
|
-
LoopDefinition,
|
59
|
-
MarshalDefinition,
|
60
|
-
MulticastDefinition,
|
61
|
-
OnCompletionDefinition,
|
62
|
-
OnExceptionDefinition,
|
63
|
-
OnFallbackDefinition,
|
64
|
-
OptimisticLockRetryPolicyDefinition,
|
65
|
-
OtherwiseDefinition,
|
66
|
-
OutputDefinition,
|
67
|
-
OutputTypeDefinition,
|
68
|
-
PackageScanDefinition,
|
69
|
-
PausableDefinition,
|
70
|
-
PipelineDefinition,
|
71
|
-
PolicyDefinition,
|
72
|
-
PollDefinition,
|
73
|
-
PollEnrichDefinition,
|
74
|
-
ProcessDefinition,
|
75
|
-
PropertyDefinition,
|
76
|
-
PropertyExpressionDefinition,
|
77
|
-
RecipientListDefinition,
|
78
|
-
RedeliveryPolicyDefinition,
|
79
|
-
RemoveHeaderDefinition,
|
80
|
-
RemoveHeadersDefinition,
|
81
|
-
RemovePropertiesDefinition,
|
82
|
-
RemovePropertyDefinition,
|
83
|
-
RemoveVariableDefinition,
|
84
|
-
ResequenceDefinition,
|
85
|
-
Resilience4jConfigurationDefinition,
|
86
|
-
RestContextRefDefinition,
|
87
|
-
ResumableDefinition,
|
88
|
-
RollbackDefinition,
|
89
|
-
RouteBuilderDefinition,
|
90
|
-
RouteConfigurationContextRefDefinition,
|
91
|
-
RouteConfigurationDefinition,
|
92
|
-
RouteContextRefDefinition,
|
93
|
-
RouteDefinition,
|
94
|
-
RouteTemplateDefinition,
|
95
|
-
RouteTemplateParameterDefinition,
|
96
|
-
RoutingSlipDefinition,
|
97
|
-
SagaActionUriDefinition,
|
98
|
-
SagaDefinition,
|
99
|
-
SamplingDefinition,
|
100
|
-
ScriptDefinition,
|
101
|
-
SetBodyDefinition,
|
102
|
-
SetExchangePatternDefinition,
|
103
|
-
SetHeaderDefinition,
|
104
|
-
SetHeadersDefinition,
|
105
|
-
SetPropertyDefinition,
|
106
|
-
SetVariableDefinition,
|
107
|
-
SetVariablesDefinition,
|
108
|
-
SortDefinition,
|
109
|
-
SplitDefinition,
|
110
|
-
StepDefinition,
|
111
|
-
StopDefinition,
|
112
|
-
TemplatedRouteDefinition,
|
113
|
-
TemplatedRouteParameterDefinition,
|
114
|
-
ThreadPoolProfileDefinition,
|
115
|
-
ThreadsDefinition,
|
116
|
-
ThrottleDefinition,
|
117
|
-
ThrowExceptionDefinition,
|
118
|
-
ToDefinition,
|
119
|
-
ToDynamicDefinition,
|
120
|
-
TransactedDefinition,
|
121
|
-
TransformDefinition,
|
122
|
-
TryDefinition,
|
123
|
-
UnmarshalDefinition,
|
124
|
-
ValidateDefinition,
|
125
|
-
ValueDefinition,
|
126
|
-
WhenDefinition,
|
127
|
-
WhenSkipSendToEndpointDefinition,
|
128
|
-
WireTapDefinition,
|
129
|
-
BeanConstructorDefinition,
|
130
|
-
BeanConstructorsDefinition,
|
131
|
-
BeanPropertiesDefinition,
|
132
|
-
BeanPropertyDefinition,
|
133
|
-
ComponentScanDefinition,
|
134
|
-
BatchResequencerConfig,
|
135
|
-
StreamResequencerConfig,
|
136
|
-
ASN1DataFormat,
|
137
|
-
AvroDataFormat,
|
138
|
-
BarcodeDataFormat,
|
139
|
-
Base64DataFormat,
|
140
|
-
BeanioDataFormat,
|
141
|
-
BindyDataFormat,
|
142
|
-
CBORDataFormat,
|
143
|
-
CryptoDataFormat,
|
144
|
-
CsvDataFormat,
|
145
|
-
CustomDataFormat,
|
146
|
-
DataFormatsDefinition,
|
147
|
-
FhirJsonDataFormat,
|
148
|
-
FhirXmlDataFormat,
|
149
|
-
FlatpackDataFormat,
|
150
|
-
GrokDataFormat,
|
151
|
-
GzipDeflaterDataFormat,
|
152
|
-
HL7DataFormat,
|
153
|
-
IcalDataFormat,
|
154
|
-
JacksonXMLDataFormat,
|
155
|
-
JaxbDataFormat,
|
156
|
-
JsonApiDataFormat,
|
157
|
-
JsonDataFormat,
|
158
|
-
LZFDataFormat,
|
159
|
-
MimeMultipartDataFormat,
|
160
|
-
PGPDataFormat,
|
161
|
-
ParquetAvroDataFormat,
|
162
|
-
ProtobufDataFormat,
|
163
|
-
RssDataFormat,
|
164
|
-
SoapDataFormat,
|
165
|
-
SwiftMtDataFormat,
|
166
|
-
SwiftMxDataFormat,
|
167
|
-
SyslogDataFormat,
|
168
|
-
TarFileDataFormat,
|
169
|
-
ThriftDataFormat,
|
170
|
-
TidyMarkupDataFormat,
|
171
|
-
UniVocityCsvDataFormat,
|
172
|
-
UniVocityFixedDataFormat,
|
173
|
-
UniVocityHeader,
|
174
|
-
UniVocityTsvDataFormat,
|
175
|
-
XMLSecurityDataFormat,
|
176
|
-
YAMLDataFormat,
|
177
|
-
YAMLTypeFilterDefinition,
|
178
|
-
ZipDeflaterDataFormat,
|
179
|
-
ZipFileDataFormat,
|
180
|
-
DeadLetterChannelDefinition,
|
181
|
-
DefaultErrorHandlerDefinition,
|
182
|
-
JtaTransactionErrorHandlerDefinition,
|
183
|
-
NoErrorHandlerDefinition,
|
184
|
-
RefErrorHandlerDefinition,
|
185
|
-
SpringTransactionErrorHandlerDefinition,
|
186
|
-
CSimpleExpression,
|
187
|
-
ConstantExpression,
|
188
|
-
DatasonnetExpression,
|
189
|
-
ExchangePropertyExpression,
|
190
|
-
ExpressionDefinition,
|
191
|
-
GroovyExpression,
|
192
|
-
HeaderExpression,
|
193
|
-
Hl7TerserExpression,
|
194
|
-
JavaExpression,
|
195
|
-
JavaScriptExpression,
|
196
|
-
JqExpression,
|
197
|
-
JsonPathExpression,
|
198
|
-
LanguageExpression,
|
199
|
-
MethodCallExpression,
|
200
|
-
MvelExpression,
|
201
|
-
OgnlExpression,
|
202
|
-
PythonExpression,
|
203
|
-
RefExpression,
|
204
|
-
SimpleExpression,
|
205
|
-
SpELExpression,
|
206
|
-
TokenizerExpression,
|
207
|
-
VariableExpression,
|
208
|
-
WasmExpression,
|
209
|
-
XMLTokenizerExpression,
|
210
|
-
XPathExpression,
|
211
|
-
XQueryExpression,
|
212
|
-
CustomLoadBalancerDefinition,
|
213
|
-
FailoverLoadBalancerDefinition,
|
214
|
-
RandomLoadBalancerDefinition,
|
215
|
-
RoundRobinLoadBalancerDefinition,
|
216
|
-
StickyLoadBalancerDefinition,
|
217
|
-
TopicLoadBalancerDefinition,
|
218
|
-
WeightedLoadBalancerDefinition,
|
219
|
-
ApiKeyDefinition,
|
220
|
-
BasicAuthDefinition,
|
221
|
-
BearerTokenDefinition,
|
222
|
-
DeleteDefinition,
|
223
|
-
GetDefinition,
|
224
|
-
HeadDefinition,
|
225
|
-
MutualTLSDefinition,
|
226
|
-
OAuth2Definition,
|
227
|
-
OpenApiDefinition,
|
228
|
-
OpenIdConnectDefinition,
|
229
|
-
ParamDefinition,
|
230
|
-
PatchDefinition,
|
231
|
-
PostDefinition,
|
232
|
-
PutDefinition,
|
233
|
-
ResponseHeaderDefinition,
|
234
|
-
ResponseMessageDefinition,
|
235
|
-
RestBindingDefinition,
|
236
|
-
RestConfigurationDefinition,
|
237
|
-
RestDefinition,
|
238
|
-
RestPropertyDefinition,
|
239
|
-
RestSecuritiesDefinition,
|
240
|
-
RestsDefinition,
|
241
|
-
SecurityDefinition,
|
242
|
-
LangChain4jTokenizerDefinition,
|
243
|
-
CustomTransformerDefinition,
|
244
|
-
DataFormatTransformerDefinition,
|
245
|
-
EndpointTransformerDefinition,
|
246
|
-
LoadTransformerDefinition,
|
247
|
-
TransformersDefinition,
|
248
|
-
CustomValidatorDefinition,
|
249
|
-
EndpointValidatorDefinition,
|
250
|
-
PredicateValidatorDefinition,
|
251
|
-
ValidatorsDefinition,
|
252
|
-
} from '../model/CamelDefinition';
|
253
|
-
import {CamelUtil} from './CamelUtil';
|
254
|
-
|
255
|
-
export class CamelDefinitionApi {
|
256
|
-
|
257
|
-
static createProcessorDefinition = (element: any): ProcessorDefinition => {
|
258
|
-
const def = element ? new ProcessorDefinition({...element}) : new ProcessorDefinition();
|
259
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
260
|
-
if (element?.aggregate !== undefined) {
|
261
|
-
def.aggregate = CamelDefinitionApi.createAggregateDefinition(element.aggregate);
|
262
|
-
}
|
263
|
-
if (element?.bean !== undefined) {
|
264
|
-
def.bean = CamelDefinitionApi.createBeanDefinition(element.bean);
|
265
|
-
}
|
266
|
-
if (element?.doCatch !== undefined) {
|
267
|
-
def.doCatch = CamelDefinitionApi.createCatchDefinition(element.doCatch);
|
268
|
-
}
|
269
|
-
if (element?.choice !== undefined) {
|
270
|
-
def.choice = CamelDefinitionApi.createChoiceDefinition(element.choice);
|
271
|
-
}
|
272
|
-
if (element?.circuitBreaker !== undefined) {
|
273
|
-
def.circuitBreaker = CamelDefinitionApi.createCircuitBreakerDefinition(element.circuitBreaker);
|
274
|
-
}
|
275
|
-
if (element?.claimCheck !== undefined) {
|
276
|
-
def.claimCheck = CamelDefinitionApi.createClaimCheckDefinition(element.claimCheck);
|
277
|
-
}
|
278
|
-
if (element?.convertBodyTo !== undefined) {
|
279
|
-
def.convertBodyTo = CamelDefinitionApi.createConvertBodyDefinition(element.convertBodyTo);
|
280
|
-
}
|
281
|
-
if (element?.convertHeaderTo !== undefined) {
|
282
|
-
def.convertHeaderTo = CamelDefinitionApi.createConvertHeaderDefinition(element.convertHeaderTo);
|
283
|
-
}
|
284
|
-
if (element?.convertVariableTo !== undefined) {
|
285
|
-
def.convertVariableTo = CamelDefinitionApi.createConvertVariableDefinition(element.convertVariableTo);
|
286
|
-
}
|
287
|
-
if (element?.delay !== undefined) {
|
288
|
-
def.delay = CamelDefinitionApi.createDelayDefinition(element.delay);
|
289
|
-
}
|
290
|
-
if (element?.dynamicRouter !== undefined) {
|
291
|
-
def.dynamicRouter = CamelDefinitionApi.createDynamicRouterDefinition(element.dynamicRouter);
|
292
|
-
}
|
293
|
-
if (element?.enrich !== undefined) {
|
294
|
-
def.enrich = CamelDefinitionApi.createEnrichDefinition(element.enrich);
|
295
|
-
}
|
296
|
-
if (element?.filter !== undefined) {
|
297
|
-
def.filter = CamelDefinitionApi.createFilterDefinition(element.filter);
|
298
|
-
}
|
299
|
-
if (element?.doFinally !== undefined) {
|
300
|
-
def.doFinally = CamelDefinitionApi.createFinallyDefinition(element.doFinally);
|
301
|
-
}
|
302
|
-
if (element?.idempotentConsumer !== undefined) {
|
303
|
-
def.idempotentConsumer = CamelDefinitionApi.createIdempotentConsumerDefinition(element.idempotentConsumer);
|
304
|
-
}
|
305
|
-
if (element?.kamelet !== undefined) {
|
306
|
-
def.kamelet = CamelDefinitionApi.createKameletDefinition(element.kamelet);
|
307
|
-
}
|
308
|
-
if (element?.loadBalance !== undefined) {
|
309
|
-
def.loadBalance = CamelDefinitionApi.createLoadBalanceDefinition(element.loadBalance);
|
310
|
-
}
|
311
|
-
if (element?.log !== undefined) {
|
312
|
-
def.log = CamelDefinitionApi.createLogDefinition(element.log);
|
313
|
-
}
|
314
|
-
if (element?.loop !== undefined) {
|
315
|
-
def.loop = CamelDefinitionApi.createLoopDefinition(element.loop);
|
316
|
-
}
|
317
|
-
if (element?.marshal !== undefined) {
|
318
|
-
def.marshal = CamelDefinitionApi.createMarshalDefinition(element.marshal);
|
319
|
-
}
|
320
|
-
if (element?.multicast !== undefined) {
|
321
|
-
def.multicast = CamelDefinitionApi.createMulticastDefinition(element.multicast);
|
322
|
-
}
|
323
|
-
if (element?.onFallback !== undefined) {
|
324
|
-
def.onFallback = CamelDefinitionApi.createOnFallbackDefinition(element.onFallback);
|
325
|
-
}
|
326
|
-
if (element?.otherwise !== undefined) {
|
327
|
-
def.otherwise = CamelDefinitionApi.createOtherwiseDefinition(element.otherwise);
|
328
|
-
}
|
329
|
-
if (element?.pausable !== undefined) {
|
330
|
-
def.pausable = CamelDefinitionApi.createPausableDefinition(element.pausable);
|
331
|
-
}
|
332
|
-
if (element?.pipeline !== undefined) {
|
333
|
-
def.pipeline = CamelDefinitionApi.createPipelineDefinition(element.pipeline);
|
334
|
-
}
|
335
|
-
if (element?.policy !== undefined) {
|
336
|
-
def.policy = CamelDefinitionApi.createPolicyDefinition(element.policy);
|
337
|
-
}
|
338
|
-
if (element?.poll !== undefined) {
|
339
|
-
def.poll = CamelDefinitionApi.createPollDefinition(element.poll);
|
340
|
-
}
|
341
|
-
if (element?.pollEnrich !== undefined) {
|
342
|
-
def.pollEnrich = CamelDefinitionApi.createPollEnrichDefinition(element.pollEnrich);
|
343
|
-
}
|
344
|
-
if (element?.process !== undefined) {
|
345
|
-
def.process = CamelDefinitionApi.createProcessDefinition(element.process);
|
346
|
-
}
|
347
|
-
if (element?.recipientList !== undefined) {
|
348
|
-
def.recipientList = CamelDefinitionApi.createRecipientListDefinition(element.recipientList);
|
349
|
-
}
|
350
|
-
if (element?.removeHeader !== undefined) {
|
351
|
-
def.removeHeader = CamelDefinitionApi.createRemoveHeaderDefinition(element.removeHeader);
|
352
|
-
}
|
353
|
-
if (element?.removeHeaders !== undefined) {
|
354
|
-
def.removeHeaders = CamelDefinitionApi.createRemoveHeadersDefinition(element.removeHeaders);
|
355
|
-
}
|
356
|
-
if (element?.removeProperties !== undefined) {
|
357
|
-
def.removeProperties = CamelDefinitionApi.createRemovePropertiesDefinition(element.removeProperties);
|
358
|
-
}
|
359
|
-
if (element?.removeProperty !== undefined) {
|
360
|
-
def.removeProperty = CamelDefinitionApi.createRemovePropertyDefinition(element.removeProperty);
|
361
|
-
}
|
362
|
-
if (element?.removeVariable !== undefined) {
|
363
|
-
def.removeVariable = CamelDefinitionApi.createRemoveVariableDefinition(element.removeVariable);
|
364
|
-
}
|
365
|
-
if (element?.resequence !== undefined) {
|
366
|
-
def.resequence = CamelDefinitionApi.createResequenceDefinition(element.resequence);
|
367
|
-
}
|
368
|
-
if (element?.resumable !== undefined) {
|
369
|
-
def.resumable = CamelDefinitionApi.createResumableDefinition(element.resumable);
|
370
|
-
}
|
371
|
-
if (element?.rollback !== undefined) {
|
372
|
-
def.rollback = CamelDefinitionApi.createRollbackDefinition(element.rollback);
|
373
|
-
}
|
374
|
-
if (element?.routingSlip !== undefined) {
|
375
|
-
def.routingSlip = CamelDefinitionApi.createRoutingSlipDefinition(element.routingSlip);
|
376
|
-
}
|
377
|
-
if (element?.saga !== undefined) {
|
378
|
-
def.saga = CamelDefinitionApi.createSagaDefinition(element.saga);
|
379
|
-
}
|
380
|
-
if (element?.sample !== undefined) {
|
381
|
-
def.sample = CamelDefinitionApi.createSamplingDefinition(element.sample);
|
382
|
-
}
|
383
|
-
if (element?.script !== undefined) {
|
384
|
-
def.script = CamelDefinitionApi.createScriptDefinition(element.script);
|
385
|
-
}
|
386
|
-
if (element?.setBody !== undefined) {
|
387
|
-
def.setBody = CamelDefinitionApi.createSetBodyDefinition(element.setBody);
|
388
|
-
}
|
389
|
-
if (element?.setExchangePattern !== undefined) {
|
390
|
-
def.setExchangePattern = CamelDefinitionApi.createSetExchangePatternDefinition(element.setExchangePattern);
|
391
|
-
}
|
392
|
-
if (element?.setHeader !== undefined) {
|
393
|
-
def.setHeader = CamelDefinitionApi.createSetHeaderDefinition(element.setHeader);
|
394
|
-
}
|
395
|
-
if (element?.setHeaders !== undefined) {
|
396
|
-
def.setHeaders = CamelDefinitionApi.createSetHeadersDefinition(element.setHeaders);
|
397
|
-
}
|
398
|
-
if (element?.setProperty !== undefined) {
|
399
|
-
def.setProperty = CamelDefinitionApi.createSetPropertyDefinition(element.setProperty);
|
400
|
-
}
|
401
|
-
if (element?.setVariable !== undefined) {
|
402
|
-
def.setVariable = CamelDefinitionApi.createSetVariableDefinition(element.setVariable);
|
403
|
-
}
|
404
|
-
if (element?.setVariables !== undefined) {
|
405
|
-
def.setVariables = CamelDefinitionApi.createSetVariablesDefinition(element.setVariables);
|
406
|
-
}
|
407
|
-
if (element?.sort !== undefined) {
|
408
|
-
def.sort = CamelDefinitionApi.createSortDefinition(element.sort);
|
409
|
-
}
|
410
|
-
if (element?.split !== undefined) {
|
411
|
-
def.split = CamelDefinitionApi.createSplitDefinition(element.split);
|
412
|
-
}
|
413
|
-
if (element?.step !== undefined) {
|
414
|
-
def.step = CamelDefinitionApi.createStepDefinition(element.step);
|
415
|
-
}
|
416
|
-
if (element?.stop !== undefined) {
|
417
|
-
def.stop = CamelDefinitionApi.createStopDefinition(element.stop);
|
418
|
-
}
|
419
|
-
if (element?.threads !== undefined) {
|
420
|
-
def.threads = CamelDefinitionApi.createThreadsDefinition(element.threads);
|
421
|
-
}
|
422
|
-
if (element?.throttle !== undefined) {
|
423
|
-
def.throttle = CamelDefinitionApi.createThrottleDefinition(element.throttle);
|
424
|
-
}
|
425
|
-
if (element?.throwException !== undefined) {
|
426
|
-
def.throwException = CamelDefinitionApi.createThrowExceptionDefinition(element.throwException);
|
427
|
-
}
|
428
|
-
if (element?.transacted !== undefined) {
|
429
|
-
def.transacted = CamelDefinitionApi.createTransactedDefinition(element.transacted);
|
430
|
-
}
|
431
|
-
if (element?.transform !== undefined) {
|
432
|
-
def.transform = CamelDefinitionApi.createTransformDefinition(element.transform);
|
433
|
-
}
|
434
|
-
if (element?.doTry !== undefined) {
|
435
|
-
def.doTry = CamelDefinitionApi.createTryDefinition(element.doTry);
|
436
|
-
}
|
437
|
-
if (element?.unmarshal !== undefined) {
|
438
|
-
def.unmarshal = CamelDefinitionApi.createUnmarshalDefinition(element.unmarshal);
|
439
|
-
}
|
440
|
-
if (element?.validate !== undefined) {
|
441
|
-
def.validate = CamelDefinitionApi.createValidateDefinition(element.validate);
|
442
|
-
}
|
443
|
-
if (element?.when !== undefined) {
|
444
|
-
def.when = CamelDefinitionApi.createWhenDefinition(element.when);
|
445
|
-
}
|
446
|
-
if (element?.whenSkipSendToEndpoint !== undefined) {
|
447
|
-
def.whenSkipSendToEndpoint = CamelDefinitionApi.createWhenSkipSendToEndpointDefinition(element.whenSkipSendToEndpoint);
|
448
|
-
}
|
449
|
-
if (element?.wireTap !== undefined) {
|
450
|
-
def.wireTap = CamelDefinitionApi.createWireTapDefinition(element.wireTap);
|
451
|
-
}
|
452
|
-
if (element?.langChain4j !== undefined) {
|
453
|
-
def.langChain4j = CamelDefinitionApi.createLangChain4jTokenizerDefinition(element.langChain4j);
|
454
|
-
}
|
455
|
-
return def;
|
456
|
-
}
|
457
|
-
|
458
|
-
static createBeansDeserializer = (element: any): BeansDeserializer => {
|
459
|
-
const def = element ? new BeansDeserializer({...element}) : new BeansDeserializer();
|
460
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
461
|
-
return def;
|
462
|
-
}
|
463
|
-
|
464
|
-
static createErrorHandlerDeserializer = (element: any): ErrorHandlerDeserializer => {
|
465
|
-
const def = element ? new ErrorHandlerDeserializer({...element}) : new ErrorHandlerDeserializer();
|
466
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
467
|
-
if (element?.deadLetterChannel !== undefined) {
|
468
|
-
def.deadLetterChannel = CamelDefinitionApi.createDeadLetterChannelDefinition(element.deadLetterChannel);
|
469
|
-
}
|
470
|
-
if (element?.defaultErrorHandler !== undefined) {
|
471
|
-
def.defaultErrorHandler = CamelDefinitionApi.createDefaultErrorHandlerDefinition(element.defaultErrorHandler);
|
472
|
-
}
|
473
|
-
if (element?.jtaTransactionErrorHandler !== undefined) {
|
474
|
-
def.jtaTransactionErrorHandler = CamelDefinitionApi.createJtaTransactionErrorHandlerDefinition(element.jtaTransactionErrorHandler);
|
475
|
-
}
|
476
|
-
if (element?.noErrorHandler !== undefined) {
|
477
|
-
def.noErrorHandler = CamelDefinitionApi.createNoErrorHandlerDefinition(element.noErrorHandler);
|
478
|
-
}
|
479
|
-
if (element?.refErrorHandler !== undefined) {
|
480
|
-
def.refErrorHandler = CamelDefinitionApi.createRefErrorHandlerDefinition(element.refErrorHandler);
|
481
|
-
}
|
482
|
-
if (element?.springTransactionErrorHandler !== undefined) {
|
483
|
-
def.springTransactionErrorHandler = CamelDefinitionApi.createSpringTransactionErrorHandlerDefinition(element.springTransactionErrorHandler);
|
484
|
-
}
|
485
|
-
return def;
|
486
|
-
}
|
487
|
-
|
488
|
-
static createOutputAwareFromDefinition = (element: any): OutputAwareFromDefinition => {
|
489
|
-
const def = element ? new OutputAwareFromDefinition({...element}) : new OutputAwareFromDefinition();
|
490
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
491
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
492
|
-
return def;
|
493
|
-
}
|
494
|
-
|
495
|
-
static createAggregateDefinition = (element: any): AggregateDefinition => {
|
496
|
-
const def = element ? new AggregateDefinition({...element}) : new AggregateDefinition();
|
497
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
498
|
-
if (element?.correlationExpression !== undefined) {
|
499
|
-
def.correlationExpression = CamelDefinitionApi.createExpressionSubElementDefinition(element.correlationExpression);
|
500
|
-
}
|
501
|
-
if (element?.completionPredicate !== undefined) {
|
502
|
-
def.completionPredicate = CamelDefinitionApi.createExpressionSubElementDefinition(element.completionPredicate);
|
503
|
-
}
|
504
|
-
if (element?.completionTimeoutExpression !== undefined) {
|
505
|
-
def.completionTimeoutExpression = CamelDefinitionApi.createExpressionSubElementDefinition(element.completionTimeoutExpression);
|
506
|
-
}
|
507
|
-
if (element?.completionSizeExpression !== undefined) {
|
508
|
-
def.completionSizeExpression = CamelDefinitionApi.createExpressionSubElementDefinition(element.completionSizeExpression);
|
509
|
-
}
|
510
|
-
if (element?.optimisticLockRetryPolicy !== undefined) {
|
511
|
-
def.optimisticLockRetryPolicy = CamelDefinitionApi.createOptimisticLockRetryPolicyDefinition(element.optimisticLockRetryPolicy);
|
512
|
-
}
|
513
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
514
|
-
return def;
|
515
|
-
}
|
516
|
-
|
517
|
-
static createBeanDefinition = (element: any): BeanDefinition => {
|
518
|
-
const def = element ? new BeanDefinition({...element}) : new BeanDefinition();
|
519
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
520
|
-
return def;
|
521
|
-
}
|
522
|
-
|
523
|
-
static createBeanFactoryDefinition = (element: any): BeanFactoryDefinition => {
|
524
|
-
const def = element ? new BeanFactoryDefinition({...element}) : new BeanFactoryDefinition();
|
525
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
526
|
-
return def;
|
527
|
-
}
|
528
|
-
|
529
|
-
static createCatchDefinition = (element: any): CatchDefinition => {
|
530
|
-
const def = element ? new CatchDefinition({...element}) : new CatchDefinition();
|
531
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
532
|
-
if (element?.onWhen !== undefined) {
|
533
|
-
def.onWhen = CamelDefinitionApi.createWhenDefinition(element.onWhen);
|
534
|
-
}
|
535
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
536
|
-
return def;
|
537
|
-
}
|
538
|
-
|
539
|
-
static createChoiceDefinition = (element: any): ChoiceDefinition => {
|
540
|
-
const def = element ? new ChoiceDefinition({...element}) : new ChoiceDefinition();
|
541
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
542
|
-
def.when = element && element?.when ? element?.when.map((x:any) => CamelDefinitionApi.createWhenDefinition(x)) :[];
|
543
|
-
if (element?.otherwise !== undefined) {
|
544
|
-
def.otherwise = CamelDefinitionApi.createOtherwiseDefinition(element.otherwise);
|
545
|
-
}
|
546
|
-
return def;
|
547
|
-
}
|
548
|
-
|
549
|
-
static createCircuitBreakerDefinition = (element: any): CircuitBreakerDefinition => {
|
550
|
-
const def = element ? new CircuitBreakerDefinition({...element}) : new CircuitBreakerDefinition();
|
551
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
552
|
-
if (element?.resilience4jConfiguration !== undefined) {
|
553
|
-
def.resilience4jConfiguration = CamelDefinitionApi.createResilience4jConfigurationDefinition(element.resilience4jConfiguration);
|
554
|
-
}
|
555
|
-
if (element?.faultToleranceConfiguration !== undefined) {
|
556
|
-
def.faultToleranceConfiguration = CamelDefinitionApi.createFaultToleranceConfigurationDefinition(element.faultToleranceConfiguration);
|
557
|
-
}
|
558
|
-
if (element?.onFallback !== undefined) {
|
559
|
-
def.onFallback = CamelDefinitionApi.createOnFallbackDefinition(element.onFallback);
|
560
|
-
}
|
561
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
562
|
-
return def;
|
563
|
-
}
|
564
|
-
|
565
|
-
static createClaimCheckDefinition = (element: any): ClaimCheckDefinition => {
|
566
|
-
const def = element ? new ClaimCheckDefinition({...element}) : new ClaimCheckDefinition();
|
567
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
568
|
-
return def;
|
569
|
-
}
|
570
|
-
|
571
|
-
static createContextScanDefinition = (element: any): ContextScanDefinition => {
|
572
|
-
const def = element ? new ContextScanDefinition({...element}) : new ContextScanDefinition();
|
573
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
574
|
-
return def;
|
575
|
-
}
|
576
|
-
|
577
|
-
static createConvertBodyDefinition = (element: any): ConvertBodyDefinition => {
|
578
|
-
if (element && typeof element === 'string') {
|
579
|
-
element = {type: element};
|
580
|
-
}
|
581
|
-
const def = element ? new ConvertBodyDefinition({...element}) : new ConvertBodyDefinition();
|
582
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
583
|
-
return def;
|
584
|
-
}
|
585
|
-
|
586
|
-
static createConvertHeaderDefinition = (element: any): ConvertHeaderDefinition => {
|
587
|
-
const def = element ? new ConvertHeaderDefinition({...element}) : new ConvertHeaderDefinition();
|
588
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
589
|
-
return def;
|
590
|
-
}
|
591
|
-
|
592
|
-
static createConvertVariableDefinition = (element: any): ConvertVariableDefinition => {
|
593
|
-
const def = element ? new ConvertVariableDefinition({...element}) : new ConvertVariableDefinition();
|
594
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
595
|
-
return def;
|
596
|
-
}
|
597
|
-
|
598
|
-
static createDataFormatDefinition = (element: any): DataFormatDefinition => {
|
599
|
-
const def = element ? new DataFormatDefinition({...element}) : new DataFormatDefinition();
|
600
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
601
|
-
return def;
|
602
|
-
}
|
603
|
-
|
604
|
-
static createDelayDefinition = (element: any): DelayDefinition => {
|
605
|
-
const def = element ? new DelayDefinition({...element}) : new DelayDefinition();
|
606
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
607
|
-
def.expression = CamelDefinitionApi.createExpressionDefinition(element.expression);
|
608
|
-
|
609
|
-
return def;
|
610
|
-
}
|
611
|
-
|
612
|
-
static createDynamicRouterDefinition = (element: any): DynamicRouterDefinition => {
|
613
|
-
const def = element ? new DynamicRouterDefinition({...element}) : new DynamicRouterDefinition();
|
614
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
615
|
-
def.expression = CamelDefinitionApi.createExpressionDefinition(element.expression);
|
616
|
-
|
617
|
-
return def;
|
618
|
-
}
|
619
|
-
|
620
|
-
static createEnrichDefinition = (element: any): EnrichDefinition => {
|
621
|
-
const def = element ? new EnrichDefinition({...element}) : new EnrichDefinition();
|
622
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
623
|
-
def.expression = CamelDefinitionApi.createExpressionDefinition(element.expression);
|
624
|
-
|
625
|
-
return def;
|
626
|
-
}
|
627
|
-
|
628
|
-
static createErrorHandlerDefinition = (element: any): ErrorHandlerDefinition => {
|
629
|
-
const def = element ? new ErrorHandlerDefinition({...element}) : new ErrorHandlerDefinition();
|
630
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
631
|
-
if (element?.deadLetterChannel !== undefined) {
|
632
|
-
def.deadLetterChannel = CamelDefinitionApi.createDeadLetterChannelDefinition(element.deadLetterChannel);
|
633
|
-
}
|
634
|
-
if (element?.defaultErrorHandler !== undefined) {
|
635
|
-
def.defaultErrorHandler = CamelDefinitionApi.createDefaultErrorHandlerDefinition(element.defaultErrorHandler);
|
636
|
-
}
|
637
|
-
if (element?.jtaTransactionErrorHandler !== undefined) {
|
638
|
-
def.jtaTransactionErrorHandler = CamelDefinitionApi.createJtaTransactionErrorHandlerDefinition(element.jtaTransactionErrorHandler);
|
639
|
-
}
|
640
|
-
if (element?.noErrorHandler !== undefined) {
|
641
|
-
def.noErrorHandler = CamelDefinitionApi.createNoErrorHandlerDefinition(element.noErrorHandler);
|
642
|
-
}
|
643
|
-
if (element?.refErrorHandler !== undefined) {
|
644
|
-
def.refErrorHandler = CamelDefinitionApi.createRefErrorHandlerDefinition(element.refErrorHandler);
|
645
|
-
}
|
646
|
-
if (element?.springTransactionErrorHandler !== undefined) {
|
647
|
-
def.springTransactionErrorHandler = CamelDefinitionApi.createSpringTransactionErrorHandlerDefinition(element.springTransactionErrorHandler);
|
648
|
-
}
|
649
|
-
return def;
|
650
|
-
}
|
651
|
-
|
652
|
-
static createExpressionSubElementDefinition = (element: any): ExpressionSubElementDefinition => {
|
653
|
-
const def = element ? new ExpressionSubElementDefinition({...element}) : new ExpressionSubElementDefinition();
|
654
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
655
|
-
if (element?.constant !== undefined) {
|
656
|
-
def.constant = CamelDefinitionApi.createConstantExpression(element.constant);
|
657
|
-
}
|
658
|
-
if (element?.csimple !== undefined) {
|
659
|
-
def.csimple = CamelDefinitionApi.createCSimpleExpression(element.csimple);
|
660
|
-
}
|
661
|
-
if (element?.datasonnet !== undefined) {
|
662
|
-
def.datasonnet = CamelDefinitionApi.createDatasonnetExpression(element.datasonnet);
|
663
|
-
}
|
664
|
-
if (element?.exchangeProperty !== undefined) {
|
665
|
-
def.exchangeProperty = CamelDefinitionApi.createExchangePropertyExpression(element.exchangeProperty);
|
666
|
-
}
|
667
|
-
if (element?.groovy !== undefined) {
|
668
|
-
def.groovy = CamelDefinitionApi.createGroovyExpression(element.groovy);
|
669
|
-
}
|
670
|
-
if (element?.header !== undefined) {
|
671
|
-
def.header = CamelDefinitionApi.createHeaderExpression(element.header);
|
672
|
-
}
|
673
|
-
if (element?.hl7terser !== undefined) {
|
674
|
-
def.hl7terser = CamelDefinitionApi.createHl7TerserExpression(element.hl7terser);
|
675
|
-
}
|
676
|
-
if (element?.java !== undefined) {
|
677
|
-
def.java = CamelDefinitionApi.createJavaExpression(element.java);
|
678
|
-
}
|
679
|
-
if (element?.jq !== undefined) {
|
680
|
-
def.jq = CamelDefinitionApi.createJqExpression(element.jq);
|
681
|
-
}
|
682
|
-
if (element?.js !== undefined) {
|
683
|
-
def.js = CamelDefinitionApi.createJavaScriptExpression(element.js);
|
684
|
-
}
|
685
|
-
if (element?.jsonpath !== undefined) {
|
686
|
-
def.jsonpath = CamelDefinitionApi.createJsonPathExpression(element.jsonpath);
|
687
|
-
}
|
688
|
-
if (element?.language !== undefined) {
|
689
|
-
def.language = CamelDefinitionApi.createLanguageExpression(element.language);
|
690
|
-
}
|
691
|
-
if (element?.method !== undefined) {
|
692
|
-
def.method = CamelDefinitionApi.createMethodCallExpression(element.method);
|
693
|
-
}
|
694
|
-
if (element?.mvel !== undefined) {
|
695
|
-
def.mvel = CamelDefinitionApi.createMvelExpression(element.mvel);
|
696
|
-
}
|
697
|
-
if (element?.ognl !== undefined) {
|
698
|
-
def.ognl = CamelDefinitionApi.createOgnlExpression(element.ognl);
|
699
|
-
}
|
700
|
-
if (element?.python !== undefined) {
|
701
|
-
def.python = CamelDefinitionApi.createPythonExpression(element.python);
|
702
|
-
}
|
703
|
-
if (element?.ref !== undefined) {
|
704
|
-
def.ref = CamelDefinitionApi.createRefExpression(element.ref);
|
705
|
-
}
|
706
|
-
if (element?.simple !== undefined) {
|
707
|
-
def.simple = CamelDefinitionApi.createSimpleExpression(element.simple);
|
708
|
-
}
|
709
|
-
if (element?.spel !== undefined) {
|
710
|
-
def.spel = CamelDefinitionApi.createSpELExpression(element.spel);
|
711
|
-
}
|
712
|
-
if (element?.tokenize !== undefined) {
|
713
|
-
def.tokenize = CamelDefinitionApi.createTokenizerExpression(element.tokenize);
|
714
|
-
}
|
715
|
-
if (element?.variable !== undefined) {
|
716
|
-
def.variable = CamelDefinitionApi.createVariableExpression(element.variable);
|
717
|
-
}
|
718
|
-
if (element?.wasm !== undefined) {
|
719
|
-
def.wasm = CamelDefinitionApi.createWasmExpression(element.wasm);
|
720
|
-
}
|
721
|
-
if (element?.xpath !== undefined) {
|
722
|
-
def.xpath = CamelDefinitionApi.createXPathExpression(element.xpath);
|
723
|
-
}
|
724
|
-
if (element?.xquery !== undefined) {
|
725
|
-
def.xquery = CamelDefinitionApi.createXQueryExpression(element.xquery);
|
726
|
-
}
|
727
|
-
if (element?.xtokenize !== undefined) {
|
728
|
-
def.xtokenize = CamelDefinitionApi.createXMLTokenizerExpression(element.xtokenize);
|
729
|
-
}
|
730
|
-
return def;
|
731
|
-
}
|
732
|
-
|
733
|
-
static createFaultToleranceConfigurationDefinition = (element: any): FaultToleranceConfigurationDefinition => {
|
734
|
-
const def = element ? new FaultToleranceConfigurationDefinition({...element}) : new FaultToleranceConfigurationDefinition();
|
735
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
736
|
-
return def;
|
737
|
-
}
|
738
|
-
|
739
|
-
static createFilterDefinition = (element: any): FilterDefinition => {
|
740
|
-
const def = element ? new FilterDefinition({...element}) : new FilterDefinition();
|
741
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
742
|
-
def.expression = CamelDefinitionApi.createExpressionDefinition(element.expression);
|
743
|
-
|
744
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
745
|
-
return def;
|
746
|
-
}
|
747
|
-
|
748
|
-
static createFinallyDefinition = (element: any): FinallyDefinition => {
|
749
|
-
const def = element ? new FinallyDefinition({...element}) : new FinallyDefinition();
|
750
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
751
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
752
|
-
return def;
|
753
|
-
}
|
754
|
-
|
755
|
-
static createFromDefinition = (element: any): FromDefinition => {
|
756
|
-
if (element && typeof element === 'string') {
|
757
|
-
element = { uri: element};
|
758
|
-
}
|
759
|
-
const def = element ? new FromDefinition({...element}) : new FromDefinition();
|
760
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
761
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
762
|
-
return def;
|
763
|
-
}
|
764
|
-
|
765
|
-
static createGlobalOptionDefinition = (element: any): GlobalOptionDefinition => {
|
766
|
-
const def = element ? new GlobalOptionDefinition({...element}) : new GlobalOptionDefinition();
|
767
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
768
|
-
return def;
|
769
|
-
}
|
770
|
-
|
771
|
-
static createGlobalOptionsDefinition = (element: any): GlobalOptionsDefinition => {
|
772
|
-
const def = element ? new GlobalOptionsDefinition({...element}) : new GlobalOptionsDefinition();
|
773
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
774
|
-
def.globalOption = element && element?.globalOption ? element?.globalOption.map((x:any) => CamelDefinitionApi.createGlobalOptionDefinition(x)) :[];
|
775
|
-
return def;
|
776
|
-
}
|
777
|
-
|
778
|
-
static createIdempotentConsumerDefinition = (element: any): IdempotentConsumerDefinition => {
|
779
|
-
const def = element ? new IdempotentConsumerDefinition({...element}) : new IdempotentConsumerDefinition();
|
780
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
781
|
-
def.expression = CamelDefinitionApi.createExpressionDefinition(element.expression);
|
782
|
-
|
783
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
784
|
-
return def;
|
785
|
-
}
|
786
|
-
|
787
|
-
static createInputTypeDefinition = (element: any): InputTypeDefinition => {
|
788
|
-
const def = element ? new InputTypeDefinition({...element}) : new InputTypeDefinition();
|
789
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
790
|
-
return def;
|
791
|
-
}
|
792
|
-
|
793
|
-
static createInterceptDefinition = (element: any): InterceptDefinition => {
|
794
|
-
const def = element ? new InterceptDefinition({...element}) : new InterceptDefinition();
|
795
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
796
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
797
|
-
return def;
|
798
|
-
}
|
799
|
-
|
800
|
-
static createInterceptFromDefinition = (element: any): InterceptFromDefinition => {
|
801
|
-
const def = element ? new InterceptFromDefinition({...element}) : new InterceptFromDefinition();
|
802
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
803
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
804
|
-
return def;
|
805
|
-
}
|
806
|
-
|
807
|
-
static createInterceptSendToEndpointDefinition = (element: any): InterceptSendToEndpointDefinition => {
|
808
|
-
if (element && typeof element === 'string') {
|
809
|
-
element = {uri: element};
|
810
|
-
}
|
811
|
-
const def = element ? new InterceptSendToEndpointDefinition({...element}) : new InterceptSendToEndpointDefinition();
|
812
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
813
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
814
|
-
return def;
|
815
|
-
}
|
816
|
-
|
817
|
-
static createKameletDefinition = (element: any): KameletDefinition => {
|
818
|
-
if (element && typeof element === 'string') {
|
819
|
-
element = {name: element};
|
820
|
-
}
|
821
|
-
const def = element ? new KameletDefinition({...element}) : new KameletDefinition();
|
822
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
823
|
-
return def;
|
824
|
-
}
|
825
|
-
|
826
|
-
static createLoadBalanceDefinition = (element: any): LoadBalanceDefinition => {
|
827
|
-
const def = element ? new LoadBalanceDefinition({...element}) : new LoadBalanceDefinition();
|
828
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
829
|
-
if (element?.customLoadBalancer !== undefined) {
|
830
|
-
def.customLoadBalancer = CamelDefinitionApi.createCustomLoadBalancerDefinition(element.customLoadBalancer);
|
831
|
-
}
|
832
|
-
if (element?.failoverLoadBalancer !== undefined) {
|
833
|
-
def.failoverLoadBalancer = CamelDefinitionApi.createFailoverLoadBalancerDefinition(element.failoverLoadBalancer);
|
834
|
-
}
|
835
|
-
if (element?.randomLoadBalancer !== undefined) {
|
836
|
-
def.randomLoadBalancer = CamelDefinitionApi.createRandomLoadBalancerDefinition(element.randomLoadBalancer);
|
837
|
-
}
|
838
|
-
if (element?.roundRobinLoadBalancer !== undefined) {
|
839
|
-
def.roundRobinLoadBalancer = CamelDefinitionApi.createRoundRobinLoadBalancerDefinition(element.roundRobinLoadBalancer);
|
840
|
-
}
|
841
|
-
if (element?.stickyLoadBalancer !== undefined) {
|
842
|
-
def.stickyLoadBalancer = CamelDefinitionApi.createStickyLoadBalancerDefinition(element.stickyLoadBalancer);
|
843
|
-
}
|
844
|
-
if (element?.topicLoadBalancer !== undefined) {
|
845
|
-
def.topicLoadBalancer = CamelDefinitionApi.createTopicLoadBalancerDefinition(element.topicLoadBalancer);
|
846
|
-
}
|
847
|
-
if (element?.weightedLoadBalancer !== undefined) {
|
848
|
-
def.weightedLoadBalancer = CamelDefinitionApi.createWeightedLoadBalancerDefinition(element.weightedLoadBalancer);
|
849
|
-
}
|
850
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
851
|
-
return def;
|
852
|
-
}
|
853
|
-
|
854
|
-
static createLogDefinition = (element: any): LogDefinition => {
|
855
|
-
if (element && typeof element === 'string') {
|
856
|
-
element = {message: element};
|
857
|
-
}
|
858
|
-
const def = element ? new LogDefinition({...element}) : new LogDefinition();
|
859
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
860
|
-
return def;
|
861
|
-
}
|
862
|
-
|
863
|
-
static createLoopDefinition = (element: any): LoopDefinition => {
|
864
|
-
const def = element ? new LoopDefinition({...element}) : new LoopDefinition();
|
865
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
866
|
-
def.expression = CamelDefinitionApi.createExpressionDefinition(element.expression);
|
867
|
-
|
868
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
869
|
-
return def;
|
870
|
-
}
|
871
|
-
|
872
|
-
static createMarshalDefinition = (element: any): MarshalDefinition => {
|
873
|
-
const def = element ? new MarshalDefinition({...element}) : new MarshalDefinition();
|
874
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
875
|
-
if (element?.asn1 !== undefined) {
|
876
|
-
def.asn1 = CamelDefinitionApi.createASN1DataFormat(element.asn1);
|
877
|
-
}
|
878
|
-
if (element?.avro !== undefined) {
|
879
|
-
def.avro = CamelDefinitionApi.createAvroDataFormat(element.avro);
|
880
|
-
}
|
881
|
-
if (element?.barcode !== undefined) {
|
882
|
-
def.barcode = CamelDefinitionApi.createBarcodeDataFormat(element.barcode);
|
883
|
-
}
|
884
|
-
if (element?.base64 !== undefined) {
|
885
|
-
def.base64 = CamelDefinitionApi.createBase64DataFormat(element.base64);
|
886
|
-
}
|
887
|
-
if (element?.beanio !== undefined) {
|
888
|
-
def.beanio = CamelDefinitionApi.createBeanioDataFormat(element.beanio);
|
889
|
-
}
|
890
|
-
if (element?.bindy !== undefined) {
|
891
|
-
def.bindy = CamelDefinitionApi.createBindyDataFormat(element.bindy);
|
892
|
-
}
|
893
|
-
if (element?.cbor !== undefined) {
|
894
|
-
def.cbor = CamelDefinitionApi.createCBORDataFormat(element.cbor);
|
895
|
-
}
|
896
|
-
if (element?.crypto !== undefined) {
|
897
|
-
def.crypto = CamelDefinitionApi.createCryptoDataFormat(element.crypto);
|
898
|
-
}
|
899
|
-
if (element?.csv !== undefined) {
|
900
|
-
def.csv = CamelDefinitionApi.createCsvDataFormat(element.csv);
|
901
|
-
}
|
902
|
-
if (element?.custom !== undefined) {
|
903
|
-
def.custom = CamelDefinitionApi.createCustomDataFormat(element.custom);
|
904
|
-
}
|
905
|
-
if (element?.fhirJson !== undefined) {
|
906
|
-
def.fhirJson = CamelDefinitionApi.createFhirJsonDataFormat(element.fhirJson);
|
907
|
-
}
|
908
|
-
if (element?.fhirXml !== undefined) {
|
909
|
-
def.fhirXml = CamelDefinitionApi.createFhirXmlDataFormat(element.fhirXml);
|
910
|
-
}
|
911
|
-
if (element?.flatpack !== undefined) {
|
912
|
-
def.flatpack = CamelDefinitionApi.createFlatpackDataFormat(element.flatpack);
|
913
|
-
}
|
914
|
-
if (element?.grok !== undefined) {
|
915
|
-
def.grok = CamelDefinitionApi.createGrokDataFormat(element.grok);
|
916
|
-
}
|
917
|
-
if (element?.gzipDeflater !== undefined) {
|
918
|
-
def.gzipDeflater = CamelDefinitionApi.createGzipDeflaterDataFormat(element.gzipDeflater);
|
919
|
-
}
|
920
|
-
if (element?.hl7 !== undefined) {
|
921
|
-
def.hl7 = CamelDefinitionApi.createHL7DataFormat(element.hl7);
|
922
|
-
}
|
923
|
-
if (element?.ical !== undefined) {
|
924
|
-
def.ical = CamelDefinitionApi.createIcalDataFormat(element.ical);
|
925
|
-
}
|
926
|
-
if (element?.jacksonXml !== undefined) {
|
927
|
-
def.jacksonXml = CamelDefinitionApi.createJacksonXMLDataFormat(element.jacksonXml);
|
928
|
-
}
|
929
|
-
if (element?.jaxb !== undefined) {
|
930
|
-
def.jaxb = CamelDefinitionApi.createJaxbDataFormat(element.jaxb);
|
931
|
-
}
|
932
|
-
if (element?.json !== undefined) {
|
933
|
-
def.json = CamelDefinitionApi.createJsonDataFormat(element.json);
|
934
|
-
}
|
935
|
-
if (element?.jsonApi !== undefined) {
|
936
|
-
def.jsonApi = CamelDefinitionApi.createJsonApiDataFormat(element.jsonApi);
|
937
|
-
}
|
938
|
-
if (element?.lzf !== undefined) {
|
939
|
-
def.lzf = CamelDefinitionApi.createLZFDataFormat(element.lzf);
|
940
|
-
}
|
941
|
-
if (element?.mimeMultipart !== undefined) {
|
942
|
-
def.mimeMultipart = CamelDefinitionApi.createMimeMultipartDataFormat(element.mimeMultipart);
|
943
|
-
}
|
944
|
-
if (element?.parquetAvro !== undefined) {
|
945
|
-
def.parquetAvro = CamelDefinitionApi.createParquetAvroDataFormat(element.parquetAvro);
|
946
|
-
}
|
947
|
-
if (element?.pgp !== undefined) {
|
948
|
-
def.pgp = CamelDefinitionApi.createPGPDataFormat(element.pgp);
|
949
|
-
}
|
950
|
-
if (element?.protobuf !== undefined) {
|
951
|
-
def.protobuf = CamelDefinitionApi.createProtobufDataFormat(element.protobuf);
|
952
|
-
}
|
953
|
-
if (element?.rss !== undefined) {
|
954
|
-
def.rss = CamelDefinitionApi.createRssDataFormat(element.rss);
|
955
|
-
}
|
956
|
-
if (element?.soap !== undefined) {
|
957
|
-
def.soap = CamelDefinitionApi.createSoapDataFormat(element.soap);
|
958
|
-
}
|
959
|
-
if (element?.swiftMt !== undefined) {
|
960
|
-
def.swiftMt = CamelDefinitionApi.createSwiftMtDataFormat(element.swiftMt);
|
961
|
-
}
|
962
|
-
if (element?.swiftMx !== undefined) {
|
963
|
-
def.swiftMx = CamelDefinitionApi.createSwiftMxDataFormat(element.swiftMx);
|
964
|
-
}
|
965
|
-
if (element?.syslog !== undefined) {
|
966
|
-
def.syslog = CamelDefinitionApi.createSyslogDataFormat(element.syslog);
|
967
|
-
}
|
968
|
-
if (element?.tarFile !== undefined) {
|
969
|
-
def.tarFile = CamelDefinitionApi.createTarFileDataFormat(element.tarFile);
|
970
|
-
}
|
971
|
-
if (element?.thrift !== undefined) {
|
972
|
-
def.thrift = CamelDefinitionApi.createThriftDataFormat(element.thrift);
|
973
|
-
}
|
974
|
-
if (element?.tidyMarkup !== undefined) {
|
975
|
-
def.tidyMarkup = CamelDefinitionApi.createTidyMarkupDataFormat(element.tidyMarkup);
|
976
|
-
}
|
977
|
-
if (element?.univocityCsv !== undefined) {
|
978
|
-
def.univocityCsv = CamelDefinitionApi.createUniVocityCsvDataFormat(element.univocityCsv);
|
979
|
-
}
|
980
|
-
if (element?.univocityFixed !== undefined) {
|
981
|
-
def.univocityFixed = CamelDefinitionApi.createUniVocityFixedDataFormat(element.univocityFixed);
|
982
|
-
}
|
983
|
-
if (element?.univocityTsv !== undefined) {
|
984
|
-
def.univocityTsv = CamelDefinitionApi.createUniVocityTsvDataFormat(element.univocityTsv);
|
985
|
-
}
|
986
|
-
if (element?.xmlSecurity !== undefined) {
|
987
|
-
def.xmlSecurity = CamelDefinitionApi.createXMLSecurityDataFormat(element.xmlSecurity);
|
988
|
-
}
|
989
|
-
if (element?.yaml !== undefined) {
|
990
|
-
def.yaml = CamelDefinitionApi.createYAMLDataFormat(element.yaml);
|
991
|
-
}
|
992
|
-
if (element?.zipDeflater !== undefined) {
|
993
|
-
def.zipDeflater = CamelDefinitionApi.createZipDeflaterDataFormat(element.zipDeflater);
|
994
|
-
}
|
995
|
-
if (element?.zipFile !== undefined) {
|
996
|
-
def.zipFile = CamelDefinitionApi.createZipFileDataFormat(element.zipFile);
|
997
|
-
}
|
998
|
-
return def;
|
999
|
-
}
|
1000
|
-
|
1001
|
-
static createMulticastDefinition = (element: any): MulticastDefinition => {
|
1002
|
-
const def = element ? new MulticastDefinition({...element}) : new MulticastDefinition();
|
1003
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1004
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
1005
|
-
return def;
|
1006
|
-
}
|
1007
|
-
|
1008
|
-
static createOnCompletionDefinition = (element: any): OnCompletionDefinition => {
|
1009
|
-
const def = element ? new OnCompletionDefinition({...element}) : new OnCompletionDefinition();
|
1010
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1011
|
-
if (element?.onWhen !== undefined) {
|
1012
|
-
def.onWhen = CamelDefinitionApi.createWhenDefinition(element.onWhen);
|
1013
|
-
}
|
1014
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
1015
|
-
return def;
|
1016
|
-
}
|
1017
|
-
|
1018
|
-
static createOnExceptionDefinition = (element: any): OnExceptionDefinition => {
|
1019
|
-
const def = element ? new OnExceptionDefinition({...element}) : new OnExceptionDefinition();
|
1020
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1021
|
-
if (element?.onWhen !== undefined) {
|
1022
|
-
def.onWhen = CamelDefinitionApi.createWhenDefinition(element.onWhen);
|
1023
|
-
}
|
1024
|
-
if (element?.retryWhile !== undefined) {
|
1025
|
-
def.retryWhile = CamelDefinitionApi.createExpressionSubElementDefinition(element.retryWhile);
|
1026
|
-
}
|
1027
|
-
if (element?.redeliveryPolicy !== undefined) {
|
1028
|
-
def.redeliveryPolicy = CamelDefinitionApi.createRedeliveryPolicyDefinition(element.redeliveryPolicy);
|
1029
|
-
}
|
1030
|
-
if (element?.handled !== undefined) {
|
1031
|
-
def.handled = CamelDefinitionApi.createExpressionSubElementDefinition(element.handled);
|
1032
|
-
}
|
1033
|
-
if (element?.continued !== undefined) {
|
1034
|
-
def.continued = CamelDefinitionApi.createExpressionSubElementDefinition(element.continued);
|
1035
|
-
}
|
1036
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
1037
|
-
return def;
|
1038
|
-
}
|
1039
|
-
|
1040
|
-
static createOnFallbackDefinition = (element: any): OnFallbackDefinition => {
|
1041
|
-
const def = element ? new OnFallbackDefinition({...element}) : new OnFallbackDefinition();
|
1042
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1043
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
1044
|
-
return def;
|
1045
|
-
}
|
1046
|
-
|
1047
|
-
static createOptimisticLockRetryPolicyDefinition = (element: any): OptimisticLockRetryPolicyDefinition => {
|
1048
|
-
const def = element ? new OptimisticLockRetryPolicyDefinition({...element}) : new OptimisticLockRetryPolicyDefinition();
|
1049
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1050
|
-
return def;
|
1051
|
-
}
|
1052
|
-
|
1053
|
-
static createOtherwiseDefinition = (element: any): OtherwiseDefinition => {
|
1054
|
-
const def = element ? new OtherwiseDefinition({...element}) : new OtherwiseDefinition();
|
1055
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1056
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
1057
|
-
return def;
|
1058
|
-
}
|
1059
|
-
|
1060
|
-
static createOutputDefinition = (element: any): OutputDefinition => {
|
1061
|
-
const def = element ? new OutputDefinition({...element}) : new OutputDefinition();
|
1062
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1063
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
1064
|
-
return def;
|
1065
|
-
}
|
1066
|
-
|
1067
|
-
static createOutputTypeDefinition = (element: any): OutputTypeDefinition => {
|
1068
|
-
const def = element ? new OutputTypeDefinition({...element}) : new OutputTypeDefinition();
|
1069
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1070
|
-
return def;
|
1071
|
-
}
|
1072
|
-
|
1073
|
-
static createPackageScanDefinition = (element: any): PackageScanDefinition => {
|
1074
|
-
const def = element ? new PackageScanDefinition({...element}) : new PackageScanDefinition();
|
1075
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1076
|
-
return def;
|
1077
|
-
}
|
1078
|
-
|
1079
|
-
static createPausableDefinition = (element: any): PausableDefinition => {
|
1080
|
-
const def = element ? new PausableDefinition({...element}) : new PausableDefinition();
|
1081
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1082
|
-
return def;
|
1083
|
-
}
|
1084
|
-
|
1085
|
-
static createPipelineDefinition = (element: any): PipelineDefinition => {
|
1086
|
-
const def = element ? new PipelineDefinition({...element}) : new PipelineDefinition();
|
1087
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1088
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
1089
|
-
return def;
|
1090
|
-
}
|
1091
|
-
|
1092
|
-
static createPolicyDefinition = (element: any): PolicyDefinition => {
|
1093
|
-
const def = element ? new PolicyDefinition({...element}) : new PolicyDefinition();
|
1094
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1095
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
1096
|
-
return def;
|
1097
|
-
}
|
1098
|
-
|
1099
|
-
static createPollDefinition = (element: any): PollDefinition => {
|
1100
|
-
if (element && typeof element === 'string') {
|
1101
|
-
element = {uri: element};
|
1102
|
-
}
|
1103
|
-
const def = element ? new PollDefinition({...element}) : new PollDefinition();
|
1104
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1105
|
-
return def;
|
1106
|
-
}
|
1107
|
-
|
1108
|
-
static createPollEnrichDefinition = (element: any): PollEnrichDefinition => {
|
1109
|
-
const def = element ? new PollEnrichDefinition({...element}) : new PollEnrichDefinition();
|
1110
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1111
|
-
def.expression = CamelDefinitionApi.createExpressionDefinition(element.expression);
|
1112
|
-
|
1113
|
-
return def;
|
1114
|
-
}
|
1115
|
-
|
1116
|
-
static createProcessDefinition = (element: any): ProcessDefinition => {
|
1117
|
-
const def = element ? new ProcessDefinition({...element}) : new ProcessDefinition();
|
1118
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1119
|
-
return def;
|
1120
|
-
}
|
1121
|
-
|
1122
|
-
static createPropertyDefinition = (element: any): PropertyDefinition => {
|
1123
|
-
const def = element ? new PropertyDefinition({...element}) : new PropertyDefinition();
|
1124
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1125
|
-
return def;
|
1126
|
-
}
|
1127
|
-
|
1128
|
-
static createPropertyExpressionDefinition = (element: any): PropertyExpressionDefinition => {
|
1129
|
-
const def = element ? new PropertyExpressionDefinition({...element}) : new PropertyExpressionDefinition();
|
1130
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1131
|
-
def.expression = CamelDefinitionApi.createExpressionDefinition(element.expression);
|
1132
|
-
|
1133
|
-
return def;
|
1134
|
-
}
|
1135
|
-
|
1136
|
-
static createRecipientListDefinition = (element: any): RecipientListDefinition => {
|
1137
|
-
const def = element ? new RecipientListDefinition({...element}) : new RecipientListDefinition();
|
1138
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1139
|
-
def.expression = CamelDefinitionApi.createExpressionDefinition(element.expression);
|
1140
|
-
|
1141
|
-
return def;
|
1142
|
-
}
|
1143
|
-
|
1144
|
-
static createRedeliveryPolicyDefinition = (element: any): RedeliveryPolicyDefinition => {
|
1145
|
-
const def = element ? new RedeliveryPolicyDefinition({...element}) : new RedeliveryPolicyDefinition();
|
1146
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1147
|
-
return def;
|
1148
|
-
}
|
1149
|
-
|
1150
|
-
static createRemoveHeaderDefinition = (element: any): RemoveHeaderDefinition => {
|
1151
|
-
if (element && typeof element === 'string') {
|
1152
|
-
element = {name: element};
|
1153
|
-
}
|
1154
|
-
const def = element ? new RemoveHeaderDefinition({...element}) : new RemoveHeaderDefinition();
|
1155
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1156
|
-
return def;
|
1157
|
-
}
|
1158
|
-
|
1159
|
-
static createRemoveHeadersDefinition = (element: any): RemoveHeadersDefinition => {
|
1160
|
-
if (element && typeof element === 'string') {
|
1161
|
-
element = {pattern: element};
|
1162
|
-
}
|
1163
|
-
const def = element ? new RemoveHeadersDefinition({...element}) : new RemoveHeadersDefinition();
|
1164
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1165
|
-
return def;
|
1166
|
-
}
|
1167
|
-
|
1168
|
-
static createRemovePropertiesDefinition = (element: any): RemovePropertiesDefinition => {
|
1169
|
-
if (element && typeof element === 'string') {
|
1170
|
-
element = {pattern: element};
|
1171
|
-
}
|
1172
|
-
const def = element ? new RemovePropertiesDefinition({...element}) : new RemovePropertiesDefinition();
|
1173
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1174
|
-
return def;
|
1175
|
-
}
|
1176
|
-
|
1177
|
-
static createRemovePropertyDefinition = (element: any): RemovePropertyDefinition => {
|
1178
|
-
if (element && typeof element === 'string') {
|
1179
|
-
element = {name: element};
|
1180
|
-
}
|
1181
|
-
const def = element ? new RemovePropertyDefinition({...element}) : new RemovePropertyDefinition();
|
1182
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1183
|
-
return def;
|
1184
|
-
}
|
1185
|
-
|
1186
|
-
static createRemoveVariableDefinition = (element: any): RemoveVariableDefinition => {
|
1187
|
-
if (element && typeof element === 'string') {
|
1188
|
-
element = {name: element};
|
1189
|
-
}
|
1190
|
-
const def = element ? new RemoveVariableDefinition({...element}) : new RemoveVariableDefinition();
|
1191
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1192
|
-
return def;
|
1193
|
-
}
|
1194
|
-
|
1195
|
-
static createResequenceDefinition = (element: any): ResequenceDefinition => {
|
1196
|
-
const def = element ? new ResequenceDefinition({...element}) : new ResequenceDefinition();
|
1197
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1198
|
-
def.expression = CamelDefinitionApi.createExpressionDefinition(element.expression);
|
1199
|
-
|
1200
|
-
if (element?.batchConfig !== undefined) {
|
1201
|
-
def.batchConfig = CamelDefinitionApi.createBatchResequencerConfig(element.batchConfig);
|
1202
|
-
}
|
1203
|
-
if (element?.streamConfig !== undefined) {
|
1204
|
-
def.streamConfig = CamelDefinitionApi.createStreamResequencerConfig(element.streamConfig);
|
1205
|
-
}
|
1206
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
1207
|
-
return def;
|
1208
|
-
}
|
1209
|
-
|
1210
|
-
static createResilience4jConfigurationDefinition = (element: any): Resilience4jConfigurationDefinition => {
|
1211
|
-
const def = element ? new Resilience4jConfigurationDefinition({...element}) : new Resilience4jConfigurationDefinition();
|
1212
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1213
|
-
return def;
|
1214
|
-
}
|
1215
|
-
|
1216
|
-
static createRestContextRefDefinition = (element: any): RestContextRefDefinition => {
|
1217
|
-
if (element && typeof element === 'string') {
|
1218
|
-
element = {ref: element};
|
1219
|
-
}
|
1220
|
-
const def = element ? new RestContextRefDefinition({...element}) : new RestContextRefDefinition();
|
1221
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1222
|
-
return def;
|
1223
|
-
}
|
1224
|
-
|
1225
|
-
static createResumableDefinition = (element: any): ResumableDefinition => {
|
1226
|
-
const def = element ? new ResumableDefinition({...element}) : new ResumableDefinition();
|
1227
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1228
|
-
return def;
|
1229
|
-
}
|
1230
|
-
|
1231
|
-
static createRollbackDefinition = (element: any): RollbackDefinition => {
|
1232
|
-
const def = element ? new RollbackDefinition({...element}) : new RollbackDefinition();
|
1233
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1234
|
-
return def;
|
1235
|
-
}
|
1236
|
-
|
1237
|
-
static createRouteBuilderDefinition = (element: any): RouteBuilderDefinition => {
|
1238
|
-
if (element && typeof element === 'string') {
|
1239
|
-
element = {ref: element};
|
1240
|
-
}
|
1241
|
-
const def = element ? new RouteBuilderDefinition({...element}) : new RouteBuilderDefinition();
|
1242
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1243
|
-
return def;
|
1244
|
-
}
|
1245
|
-
|
1246
|
-
static createRouteConfigurationContextRefDefinition = (element: any): RouteConfigurationContextRefDefinition => {
|
1247
|
-
if (element && typeof element === 'string') {
|
1248
|
-
element = {ref: element};
|
1249
|
-
}
|
1250
|
-
const def = element ? new RouteConfigurationContextRefDefinition({...element}) : new RouteConfigurationContextRefDefinition();
|
1251
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1252
|
-
return def;
|
1253
|
-
}
|
1254
|
-
|
1255
|
-
static createRouteConfigurationDefinition = (element: any): RouteConfigurationDefinition => {
|
1256
|
-
const def = element ? new RouteConfigurationDefinition({...element}) : new RouteConfigurationDefinition();
|
1257
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1258
|
-
if (element?.errorHandler !== undefined) {
|
1259
|
-
def.errorHandler = CamelDefinitionApi.createErrorHandlerDefinition(element.errorHandler);
|
1260
|
-
}
|
1261
|
-
def.intercept = element && element?.intercept ? element?.intercept.map((x:any) => CamelDefinitionApi.createInterceptDefinition(x)) :[];
|
1262
|
-
def.interceptFrom = element && element?.interceptFrom ? element?.interceptFrom.map((x:any) => CamelDefinitionApi.createInterceptFromDefinition(x)) :[];
|
1263
|
-
def.interceptSendToEndpoint = element && element?.interceptSendToEndpoint ? element?.interceptSendToEndpoint.map((x:any) => CamelDefinitionApi.createInterceptSendToEndpointDefinition(x)) :[];
|
1264
|
-
def.onException = element && element?.onException ? element?.onException.map((x:any) => CamelDefinitionApi.createOnExceptionDefinition(x)) :[];
|
1265
|
-
def.onCompletion = element && element?.onCompletion ? element?.onCompletion.map((x:any) => CamelDefinitionApi.createOnCompletionDefinition(x)) :[];
|
1266
|
-
return def;
|
1267
|
-
}
|
1268
|
-
|
1269
|
-
static createRouteContextRefDefinition = (element: any): RouteContextRefDefinition => {
|
1270
|
-
if (element && typeof element === 'string') {
|
1271
|
-
element = {ref: element};
|
1272
|
-
}
|
1273
|
-
const def = element ? new RouteContextRefDefinition({...element}) : new RouteContextRefDefinition();
|
1274
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1275
|
-
return def;
|
1276
|
-
}
|
1277
|
-
|
1278
|
-
static createRouteDefinition = (element: any): RouteDefinition => {
|
1279
|
-
const def = element ? new RouteDefinition({...element}) : new RouteDefinition();
|
1280
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1281
|
-
if (element?.errorHandler !== undefined) {
|
1282
|
-
def.errorHandler = CamelDefinitionApi.createErrorHandlerDefinition(element.errorHandler);
|
1283
|
-
}
|
1284
|
-
if (element?.inputType !== undefined) {
|
1285
|
-
def.inputType = CamelDefinitionApi.createInputTypeDefinition(element.inputType);
|
1286
|
-
}
|
1287
|
-
if (element?.outputType !== undefined) {
|
1288
|
-
def.outputType = CamelDefinitionApi.createOutputTypeDefinition(element.outputType);
|
1289
|
-
}
|
1290
|
-
if (element?.from !== undefined) {
|
1291
|
-
def.from = CamelDefinitionApi.createFromDefinition(element.from);
|
1292
|
-
}
|
1293
|
-
return def;
|
1294
|
-
}
|
1295
|
-
|
1296
|
-
static createRouteTemplateDefinition = (element: any): RouteTemplateDefinition => {
|
1297
|
-
const def = element ? new RouteTemplateDefinition({...element}) : new RouteTemplateDefinition();
|
1298
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1299
|
-
if (element?.route !== undefined) {
|
1300
|
-
def.route = CamelDefinitionApi.createRouteDefinition(element.route);
|
1301
|
-
}
|
1302
|
-
def.beans = element && element?.beans ? element?.beans.map((x:any) => CamelDefinitionApi.createBeanFactoryDefinition(x)) :[];
|
1303
|
-
if (element?.from !== undefined) {
|
1304
|
-
def.from = CamelDefinitionApi.createFromDefinition(element.from);
|
1305
|
-
}
|
1306
|
-
def.parameters = element && element?.parameters ? element?.parameters.map((x:any) => CamelDefinitionApi.createRouteTemplateParameterDefinition(x)) :[];
|
1307
|
-
return def;
|
1308
|
-
}
|
1309
|
-
|
1310
|
-
static createRouteTemplateParameterDefinition = (element: any): RouteTemplateParameterDefinition => {
|
1311
|
-
const def = element ? new RouteTemplateParameterDefinition({...element}) : new RouteTemplateParameterDefinition();
|
1312
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1313
|
-
return def;
|
1314
|
-
}
|
1315
|
-
|
1316
|
-
static createRoutingSlipDefinition = (element: any): RoutingSlipDefinition => {
|
1317
|
-
const def = element ? new RoutingSlipDefinition({...element}) : new RoutingSlipDefinition();
|
1318
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1319
|
-
def.expression = CamelDefinitionApi.createExpressionDefinition(element.expression);
|
1320
|
-
|
1321
|
-
return def;
|
1322
|
-
}
|
1323
|
-
|
1324
|
-
static createSagaActionUriDefinition = (element: any): SagaActionUriDefinition => {
|
1325
|
-
if (element && typeof element === 'string') {
|
1326
|
-
element = {uri: element};
|
1327
|
-
}
|
1328
|
-
const def = element ? new SagaActionUriDefinition({...element}) : new SagaActionUriDefinition();
|
1329
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1330
|
-
return def;
|
1331
|
-
}
|
1332
|
-
|
1333
|
-
static createSagaDefinition = (element: any): SagaDefinition => {
|
1334
|
-
const def = element ? new SagaDefinition({...element}) : new SagaDefinition();
|
1335
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1336
|
-
def.option = element && element?.option ? element?.option.map((x:any) => CamelDefinitionApi.createPropertyExpressionDefinition(x)) :[];
|
1337
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
1338
|
-
return def;
|
1339
|
-
}
|
1340
|
-
|
1341
|
-
static createSamplingDefinition = (element: any): SamplingDefinition => {
|
1342
|
-
const def = element ? new SamplingDefinition({...element}) : new SamplingDefinition();
|
1343
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1344
|
-
return def;
|
1345
|
-
}
|
1346
|
-
|
1347
|
-
static createScriptDefinition = (element: any): ScriptDefinition => {
|
1348
|
-
const def = element ? new ScriptDefinition({...element}) : new ScriptDefinition();
|
1349
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1350
|
-
def.expression = CamelDefinitionApi.createExpressionDefinition(element.expression);
|
1351
|
-
|
1352
|
-
return def;
|
1353
|
-
}
|
1354
|
-
|
1355
|
-
static createSetBodyDefinition = (element: any): SetBodyDefinition => {
|
1356
|
-
const def = element ? new SetBodyDefinition({...element}) : new SetBodyDefinition();
|
1357
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1358
|
-
def.expression = CamelDefinitionApi.createExpressionDefinition(element.expression);
|
1359
|
-
|
1360
|
-
return def;
|
1361
|
-
}
|
1362
|
-
|
1363
|
-
static createSetExchangePatternDefinition = (element: any): SetExchangePatternDefinition => {
|
1364
|
-
const def = element ? new SetExchangePatternDefinition({...element}) : new SetExchangePatternDefinition();
|
1365
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1366
|
-
return def;
|
1367
|
-
}
|
1368
|
-
|
1369
|
-
static createSetHeaderDefinition = (element: any): SetHeaderDefinition => {
|
1370
|
-
const def = element ? new SetHeaderDefinition({...element}) : new SetHeaderDefinition();
|
1371
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1372
|
-
def.expression = CamelDefinitionApi.createExpressionDefinition(element.expression);
|
1373
|
-
|
1374
|
-
return def;
|
1375
|
-
}
|
1376
|
-
|
1377
|
-
static createSetHeadersDefinition = (element: any): SetHeadersDefinition => {
|
1378
|
-
const def = element ? new SetHeadersDefinition({...element}) : new SetHeadersDefinition();
|
1379
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1380
|
-
def.headers = element && element?.headers ? element?.headers.map((x:any) => CamelDefinitionApi.createSetHeaderDefinition(x)) :[];
|
1381
|
-
return def;
|
1382
|
-
}
|
1383
|
-
|
1384
|
-
static createSetPropertyDefinition = (element: any): SetPropertyDefinition => {
|
1385
|
-
const def = element ? new SetPropertyDefinition({...element}) : new SetPropertyDefinition();
|
1386
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1387
|
-
def.expression = CamelDefinitionApi.createExpressionDefinition(element.expression);
|
1388
|
-
|
1389
|
-
return def;
|
1390
|
-
}
|
1391
|
-
|
1392
|
-
static createSetVariableDefinition = (element: any): SetVariableDefinition => {
|
1393
|
-
const def = element ? new SetVariableDefinition({...element}) : new SetVariableDefinition();
|
1394
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1395
|
-
def.expression = CamelDefinitionApi.createExpressionDefinition(element.expression);
|
1396
|
-
|
1397
|
-
return def;
|
1398
|
-
}
|
1399
|
-
|
1400
|
-
static createSetVariablesDefinition = (element: any): SetVariablesDefinition => {
|
1401
|
-
const def = element ? new SetVariablesDefinition({...element}) : new SetVariablesDefinition();
|
1402
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1403
|
-
def.variables = element && element?.variables ? element?.variables.map((x:any) => CamelDefinitionApi.createSetVariableDefinition(x)) :[];
|
1404
|
-
return def;
|
1405
|
-
}
|
1406
|
-
|
1407
|
-
static createSortDefinition = (element: any): SortDefinition => {
|
1408
|
-
const def = element ? new SortDefinition({...element}) : new SortDefinition();
|
1409
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1410
|
-
def.expression = CamelDefinitionApi.createExpressionDefinition(element.expression);
|
1411
|
-
|
1412
|
-
return def;
|
1413
|
-
}
|
1414
|
-
|
1415
|
-
static createSplitDefinition = (element: any): SplitDefinition => {
|
1416
|
-
const def = element ? new SplitDefinition({...element}) : new SplitDefinition();
|
1417
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1418
|
-
def.expression = CamelDefinitionApi.createExpressionDefinition(element.expression);
|
1419
|
-
|
1420
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
1421
|
-
return def;
|
1422
|
-
}
|
1423
|
-
|
1424
|
-
static createStepDefinition = (element: any): StepDefinition => {
|
1425
|
-
const def = element ? new StepDefinition({...element}) : new StepDefinition();
|
1426
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1427
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
1428
|
-
return def;
|
1429
|
-
}
|
1430
|
-
|
1431
|
-
static createStopDefinition = (element: any): StopDefinition => {
|
1432
|
-
const def = element ? new StopDefinition({...element}) : new StopDefinition();
|
1433
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1434
|
-
return def;
|
1435
|
-
}
|
1436
|
-
|
1437
|
-
static createTemplatedRouteDefinition = (element: any): TemplatedRouteDefinition => {
|
1438
|
-
const def = element ? new TemplatedRouteDefinition({...element}) : new TemplatedRouteDefinition();
|
1439
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1440
|
-
def.beans = element && element?.beans ? element?.beans.map((x:any) => CamelDefinitionApi.createBeanFactoryDefinition(x)) :[];
|
1441
|
-
def.parameters = element && element?.parameters ? element?.parameters.map((x:any) => CamelDefinitionApi.createTemplatedRouteParameterDefinition(x)) :[];
|
1442
|
-
return def;
|
1443
|
-
}
|
1444
|
-
|
1445
|
-
static createTemplatedRouteParameterDefinition = (element: any): TemplatedRouteParameterDefinition => {
|
1446
|
-
const def = element ? new TemplatedRouteParameterDefinition({...element}) : new TemplatedRouteParameterDefinition();
|
1447
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1448
|
-
return def;
|
1449
|
-
}
|
1450
|
-
|
1451
|
-
static createThreadPoolProfileDefinition = (element: any): ThreadPoolProfileDefinition => {
|
1452
|
-
const def = element ? new ThreadPoolProfileDefinition({...element}) : new ThreadPoolProfileDefinition();
|
1453
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1454
|
-
return def;
|
1455
|
-
}
|
1456
|
-
|
1457
|
-
static createThreadsDefinition = (element: any): ThreadsDefinition => {
|
1458
|
-
const def = element ? new ThreadsDefinition({...element}) : new ThreadsDefinition();
|
1459
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1460
|
-
return def;
|
1461
|
-
}
|
1462
|
-
|
1463
|
-
static createThrottleDefinition = (element: any): ThrottleDefinition => {
|
1464
|
-
const def = element ? new ThrottleDefinition({...element}) : new ThrottleDefinition();
|
1465
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1466
|
-
def.expression = CamelDefinitionApi.createExpressionDefinition(element.expression);
|
1467
|
-
|
1468
|
-
if (element?.correlationExpression !== undefined) {
|
1469
|
-
def.correlationExpression = CamelDefinitionApi.createExpressionSubElementDefinition(element.correlationExpression);
|
1470
|
-
}
|
1471
|
-
return def;
|
1472
|
-
}
|
1473
|
-
|
1474
|
-
static createThrowExceptionDefinition = (element: any): ThrowExceptionDefinition => {
|
1475
|
-
const def = element ? new ThrowExceptionDefinition({...element}) : new ThrowExceptionDefinition();
|
1476
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1477
|
-
return def;
|
1478
|
-
}
|
1479
|
-
|
1480
|
-
static createToDefinition = (element: any): ToDefinition => {
|
1481
|
-
if (element && typeof element === 'string') {
|
1482
|
-
element = {uri: element};
|
1483
|
-
}
|
1484
|
-
const def = element ? new ToDefinition({...element}) : new ToDefinition();
|
1485
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1486
|
-
return def;
|
1487
|
-
}
|
1488
|
-
|
1489
|
-
static createToDynamicDefinition = (element: any): ToDynamicDefinition => {
|
1490
|
-
if (element && typeof element === 'string') {
|
1491
|
-
element = {uri: element};
|
1492
|
-
}
|
1493
|
-
const def = element ? new ToDynamicDefinition({...element}) : new ToDynamicDefinition();
|
1494
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1495
|
-
return def;
|
1496
|
-
}
|
1497
|
-
|
1498
|
-
static createTransactedDefinition = (element: any): TransactedDefinition => {
|
1499
|
-
const def = element ? new TransactedDefinition({...element}) : new TransactedDefinition();
|
1500
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1501
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
1502
|
-
return def;
|
1503
|
-
}
|
1504
|
-
|
1505
|
-
static createTransformDefinition = (element: any): TransformDefinition => {
|
1506
|
-
const def = element ? new TransformDefinition({...element}) : new TransformDefinition();
|
1507
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1508
|
-
def.expression = CamelDefinitionApi.createExpressionDefinition(element.expression);
|
1509
|
-
|
1510
|
-
return def;
|
1511
|
-
}
|
1512
|
-
|
1513
|
-
static createTryDefinition = (element: any): TryDefinition => {
|
1514
|
-
const def = element ? new TryDefinition({...element}) : new TryDefinition();
|
1515
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1516
|
-
def.doCatch = element && element?.doCatch ? element?.doCatch.map((x:any) => CamelDefinitionApi.createCatchDefinition(x)) :[];
|
1517
|
-
if (element?.doFinally !== undefined) {
|
1518
|
-
def.doFinally = CamelDefinitionApi.createFinallyDefinition(element.doFinally);
|
1519
|
-
}
|
1520
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
1521
|
-
return def;
|
1522
|
-
}
|
1523
|
-
|
1524
|
-
static createUnmarshalDefinition = (element: any): UnmarshalDefinition => {
|
1525
|
-
const def = element ? new UnmarshalDefinition({...element}) : new UnmarshalDefinition();
|
1526
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1527
|
-
if (element?.asn1 !== undefined) {
|
1528
|
-
def.asn1 = CamelDefinitionApi.createASN1DataFormat(element.asn1);
|
1529
|
-
}
|
1530
|
-
if (element?.avro !== undefined) {
|
1531
|
-
def.avro = CamelDefinitionApi.createAvroDataFormat(element.avro);
|
1532
|
-
}
|
1533
|
-
if (element?.barcode !== undefined) {
|
1534
|
-
def.barcode = CamelDefinitionApi.createBarcodeDataFormat(element.barcode);
|
1535
|
-
}
|
1536
|
-
if (element?.base64 !== undefined) {
|
1537
|
-
def.base64 = CamelDefinitionApi.createBase64DataFormat(element.base64);
|
1538
|
-
}
|
1539
|
-
if (element?.beanio !== undefined) {
|
1540
|
-
def.beanio = CamelDefinitionApi.createBeanioDataFormat(element.beanio);
|
1541
|
-
}
|
1542
|
-
if (element?.bindy !== undefined) {
|
1543
|
-
def.bindy = CamelDefinitionApi.createBindyDataFormat(element.bindy);
|
1544
|
-
}
|
1545
|
-
if (element?.cbor !== undefined) {
|
1546
|
-
def.cbor = CamelDefinitionApi.createCBORDataFormat(element.cbor);
|
1547
|
-
}
|
1548
|
-
if (element?.crypto !== undefined) {
|
1549
|
-
def.crypto = CamelDefinitionApi.createCryptoDataFormat(element.crypto);
|
1550
|
-
}
|
1551
|
-
if (element?.csv !== undefined) {
|
1552
|
-
def.csv = CamelDefinitionApi.createCsvDataFormat(element.csv);
|
1553
|
-
}
|
1554
|
-
if (element?.custom !== undefined) {
|
1555
|
-
def.custom = CamelDefinitionApi.createCustomDataFormat(element.custom);
|
1556
|
-
}
|
1557
|
-
if (element?.fhirJson !== undefined) {
|
1558
|
-
def.fhirJson = CamelDefinitionApi.createFhirJsonDataFormat(element.fhirJson);
|
1559
|
-
}
|
1560
|
-
if (element?.fhirXml !== undefined) {
|
1561
|
-
def.fhirXml = CamelDefinitionApi.createFhirXmlDataFormat(element.fhirXml);
|
1562
|
-
}
|
1563
|
-
if (element?.flatpack !== undefined) {
|
1564
|
-
def.flatpack = CamelDefinitionApi.createFlatpackDataFormat(element.flatpack);
|
1565
|
-
}
|
1566
|
-
if (element?.grok !== undefined) {
|
1567
|
-
def.grok = CamelDefinitionApi.createGrokDataFormat(element.grok);
|
1568
|
-
}
|
1569
|
-
if (element?.gzipDeflater !== undefined) {
|
1570
|
-
def.gzipDeflater = CamelDefinitionApi.createGzipDeflaterDataFormat(element.gzipDeflater);
|
1571
|
-
}
|
1572
|
-
if (element?.hl7 !== undefined) {
|
1573
|
-
def.hl7 = CamelDefinitionApi.createHL7DataFormat(element.hl7);
|
1574
|
-
}
|
1575
|
-
if (element?.ical !== undefined) {
|
1576
|
-
def.ical = CamelDefinitionApi.createIcalDataFormat(element.ical);
|
1577
|
-
}
|
1578
|
-
if (element?.jacksonXml !== undefined) {
|
1579
|
-
def.jacksonXml = CamelDefinitionApi.createJacksonXMLDataFormat(element.jacksonXml);
|
1580
|
-
}
|
1581
|
-
if (element?.jaxb !== undefined) {
|
1582
|
-
def.jaxb = CamelDefinitionApi.createJaxbDataFormat(element.jaxb);
|
1583
|
-
}
|
1584
|
-
if (element?.json !== undefined) {
|
1585
|
-
def.json = CamelDefinitionApi.createJsonDataFormat(element.json);
|
1586
|
-
}
|
1587
|
-
if (element?.jsonApi !== undefined) {
|
1588
|
-
def.jsonApi = CamelDefinitionApi.createJsonApiDataFormat(element.jsonApi);
|
1589
|
-
}
|
1590
|
-
if (element?.lzf !== undefined) {
|
1591
|
-
def.lzf = CamelDefinitionApi.createLZFDataFormat(element.lzf);
|
1592
|
-
}
|
1593
|
-
if (element?.mimeMultipart !== undefined) {
|
1594
|
-
def.mimeMultipart = CamelDefinitionApi.createMimeMultipartDataFormat(element.mimeMultipart);
|
1595
|
-
}
|
1596
|
-
if (element?.parquetAvro !== undefined) {
|
1597
|
-
def.parquetAvro = CamelDefinitionApi.createParquetAvroDataFormat(element.parquetAvro);
|
1598
|
-
}
|
1599
|
-
if (element?.pgp !== undefined) {
|
1600
|
-
def.pgp = CamelDefinitionApi.createPGPDataFormat(element.pgp);
|
1601
|
-
}
|
1602
|
-
if (element?.protobuf !== undefined) {
|
1603
|
-
def.protobuf = CamelDefinitionApi.createProtobufDataFormat(element.protobuf);
|
1604
|
-
}
|
1605
|
-
if (element?.rss !== undefined) {
|
1606
|
-
def.rss = CamelDefinitionApi.createRssDataFormat(element.rss);
|
1607
|
-
}
|
1608
|
-
if (element?.soap !== undefined) {
|
1609
|
-
def.soap = CamelDefinitionApi.createSoapDataFormat(element.soap);
|
1610
|
-
}
|
1611
|
-
if (element?.swiftMt !== undefined) {
|
1612
|
-
def.swiftMt = CamelDefinitionApi.createSwiftMtDataFormat(element.swiftMt);
|
1613
|
-
}
|
1614
|
-
if (element?.swiftMx !== undefined) {
|
1615
|
-
def.swiftMx = CamelDefinitionApi.createSwiftMxDataFormat(element.swiftMx);
|
1616
|
-
}
|
1617
|
-
if (element?.syslog !== undefined) {
|
1618
|
-
def.syslog = CamelDefinitionApi.createSyslogDataFormat(element.syslog);
|
1619
|
-
}
|
1620
|
-
if (element?.tarFile !== undefined) {
|
1621
|
-
def.tarFile = CamelDefinitionApi.createTarFileDataFormat(element.tarFile);
|
1622
|
-
}
|
1623
|
-
if (element?.thrift !== undefined) {
|
1624
|
-
def.thrift = CamelDefinitionApi.createThriftDataFormat(element.thrift);
|
1625
|
-
}
|
1626
|
-
if (element?.tidyMarkup !== undefined) {
|
1627
|
-
def.tidyMarkup = CamelDefinitionApi.createTidyMarkupDataFormat(element.tidyMarkup);
|
1628
|
-
}
|
1629
|
-
if (element?.univocityCsv !== undefined) {
|
1630
|
-
def.univocityCsv = CamelDefinitionApi.createUniVocityCsvDataFormat(element.univocityCsv);
|
1631
|
-
}
|
1632
|
-
if (element?.univocityFixed !== undefined) {
|
1633
|
-
def.univocityFixed = CamelDefinitionApi.createUniVocityFixedDataFormat(element.univocityFixed);
|
1634
|
-
}
|
1635
|
-
if (element?.univocityTsv !== undefined) {
|
1636
|
-
def.univocityTsv = CamelDefinitionApi.createUniVocityTsvDataFormat(element.univocityTsv);
|
1637
|
-
}
|
1638
|
-
if (element?.xmlSecurity !== undefined) {
|
1639
|
-
def.xmlSecurity = CamelDefinitionApi.createXMLSecurityDataFormat(element.xmlSecurity);
|
1640
|
-
}
|
1641
|
-
if (element?.yaml !== undefined) {
|
1642
|
-
def.yaml = CamelDefinitionApi.createYAMLDataFormat(element.yaml);
|
1643
|
-
}
|
1644
|
-
if (element?.zipDeflater !== undefined) {
|
1645
|
-
def.zipDeflater = CamelDefinitionApi.createZipDeflaterDataFormat(element.zipDeflater);
|
1646
|
-
}
|
1647
|
-
if (element?.zipFile !== undefined) {
|
1648
|
-
def.zipFile = CamelDefinitionApi.createZipFileDataFormat(element.zipFile);
|
1649
|
-
}
|
1650
|
-
return def;
|
1651
|
-
}
|
1652
|
-
|
1653
|
-
static createValidateDefinition = (element: any): ValidateDefinition => {
|
1654
|
-
const def = element ? new ValidateDefinition({...element}) : new ValidateDefinition();
|
1655
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1656
|
-
def.expression = CamelDefinitionApi.createExpressionDefinition(element.expression);
|
1657
|
-
|
1658
|
-
return def;
|
1659
|
-
}
|
1660
|
-
|
1661
|
-
static createValueDefinition = (element: any): ValueDefinition => {
|
1662
|
-
const def = element ? new ValueDefinition({...element}) : new ValueDefinition();
|
1663
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1664
|
-
return def;
|
1665
|
-
}
|
1666
|
-
|
1667
|
-
static createWhenDefinition = (element: any): WhenDefinition => {
|
1668
|
-
const def = element ? new WhenDefinition({...element}) : new WhenDefinition();
|
1669
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1670
|
-
def.expression = CamelDefinitionApi.createExpressionDefinition(element.expression);
|
1671
|
-
|
1672
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
1673
|
-
return def;
|
1674
|
-
}
|
1675
|
-
|
1676
|
-
static createWhenSkipSendToEndpointDefinition = (element: any): WhenSkipSendToEndpointDefinition => {
|
1677
|
-
const def = element ? new WhenSkipSendToEndpointDefinition({...element}) : new WhenSkipSendToEndpointDefinition();
|
1678
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1679
|
-
def.expression = CamelDefinitionApi.createExpressionDefinition(element.expression);
|
1680
|
-
|
1681
|
-
def.steps = CamelDefinitionApi.createSteps(element?.steps);
|
1682
|
-
return def;
|
1683
|
-
}
|
1684
|
-
|
1685
|
-
static createWireTapDefinition = (element: any): WireTapDefinition => {
|
1686
|
-
const def = element ? new WireTapDefinition({...element}) : new WireTapDefinition();
|
1687
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1688
|
-
return def;
|
1689
|
-
}
|
1690
|
-
|
1691
|
-
static createBeanConstructorDefinition = (element: any): BeanConstructorDefinition => {
|
1692
|
-
const def = element ? new BeanConstructorDefinition({...element}) : new BeanConstructorDefinition();
|
1693
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1694
|
-
return def;
|
1695
|
-
}
|
1696
|
-
|
1697
|
-
static createBeanConstructorsDefinition = (element: any): BeanConstructorsDefinition => {
|
1698
|
-
const def = element ? new BeanConstructorsDefinition({...element}) : new BeanConstructorsDefinition();
|
1699
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1700
|
-
def.constructor = element && element?.constructor ? element?.constructor.map((x:any) => CamelDefinitionApi.createBeanConstructorDefinition(x)) :[];
|
1701
|
-
return def;
|
1702
|
-
}
|
1703
|
-
|
1704
|
-
static createBeanPropertiesDefinition = (element: any): BeanPropertiesDefinition => {
|
1705
|
-
const def = element ? new BeanPropertiesDefinition({...element}) : new BeanPropertiesDefinition();
|
1706
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1707
|
-
def.property = element && element?.property ? element?.property.map((x:any) => CamelDefinitionApi.createBeanPropertyDefinition(x)) :[];
|
1708
|
-
return def;
|
1709
|
-
}
|
1710
|
-
|
1711
|
-
static createBeanPropertyDefinition = (element: any): BeanPropertyDefinition => {
|
1712
|
-
const def = element ? new BeanPropertyDefinition({...element}) : new BeanPropertyDefinition();
|
1713
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1714
|
-
if (element?.properties !== undefined) {
|
1715
|
-
def.properties = CamelDefinitionApi.createBeanPropertiesDefinition(element.properties);
|
1716
|
-
}
|
1717
|
-
return def;
|
1718
|
-
}
|
1719
|
-
|
1720
|
-
static createComponentScanDefinition = (element: any): ComponentScanDefinition => {
|
1721
|
-
const def = element ? new ComponentScanDefinition({...element}) : new ComponentScanDefinition();
|
1722
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1723
|
-
return def;
|
1724
|
-
}
|
1725
|
-
|
1726
|
-
static createBatchResequencerConfig = (element: any): BatchResequencerConfig => {
|
1727
|
-
const def = element ? new BatchResequencerConfig({...element}) : new BatchResequencerConfig();
|
1728
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1729
|
-
return def;
|
1730
|
-
}
|
1731
|
-
|
1732
|
-
static createStreamResequencerConfig = (element: any): StreamResequencerConfig => {
|
1733
|
-
const def = element ? new StreamResequencerConfig({...element}) : new StreamResequencerConfig();
|
1734
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1735
|
-
return def;
|
1736
|
-
}
|
1737
|
-
|
1738
|
-
static createASN1DataFormat = (element: any): ASN1DataFormat => {
|
1739
|
-
const def = element ? new ASN1DataFormat({...element}) : new ASN1DataFormat();
|
1740
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1741
|
-
return def;
|
1742
|
-
}
|
1743
|
-
|
1744
|
-
static createAvroDataFormat = (element: any): AvroDataFormat => {
|
1745
|
-
const def = element ? new AvroDataFormat({...element}) : new AvroDataFormat();
|
1746
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1747
|
-
return def;
|
1748
|
-
}
|
1749
|
-
|
1750
|
-
static createBarcodeDataFormat = (element: any): BarcodeDataFormat => {
|
1751
|
-
const def = element ? new BarcodeDataFormat({...element}) : new BarcodeDataFormat();
|
1752
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1753
|
-
return def;
|
1754
|
-
}
|
1755
|
-
|
1756
|
-
static createBase64DataFormat = (element: any): Base64DataFormat => {
|
1757
|
-
const def = element ? new Base64DataFormat({...element}) : new Base64DataFormat();
|
1758
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1759
|
-
return def;
|
1760
|
-
}
|
1761
|
-
|
1762
|
-
static createBeanioDataFormat = (element: any): BeanioDataFormat => {
|
1763
|
-
const def = element ? new BeanioDataFormat({...element}) : new BeanioDataFormat();
|
1764
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1765
|
-
return def;
|
1766
|
-
}
|
1767
|
-
|
1768
|
-
static createBindyDataFormat = (element: any): BindyDataFormat => {
|
1769
|
-
const def = element ? new BindyDataFormat({...element}) : new BindyDataFormat();
|
1770
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1771
|
-
return def;
|
1772
|
-
}
|
1773
|
-
|
1774
|
-
static createCBORDataFormat = (element: any): CBORDataFormat => {
|
1775
|
-
const def = element ? new CBORDataFormat({...element}) : new CBORDataFormat();
|
1776
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1777
|
-
return def;
|
1778
|
-
}
|
1779
|
-
|
1780
|
-
static createCryptoDataFormat = (element: any): CryptoDataFormat => {
|
1781
|
-
const def = element ? new CryptoDataFormat({...element}) : new CryptoDataFormat();
|
1782
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1783
|
-
return def;
|
1784
|
-
}
|
1785
|
-
|
1786
|
-
static createCsvDataFormat = (element: any): CsvDataFormat => {
|
1787
|
-
const def = element ? new CsvDataFormat({...element}) : new CsvDataFormat();
|
1788
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1789
|
-
return def;
|
1790
|
-
}
|
1791
|
-
|
1792
|
-
static createCustomDataFormat = (element: any): CustomDataFormat => {
|
1793
|
-
if (element && typeof element === 'string') {
|
1794
|
-
element = {ref: element};
|
1795
|
-
}
|
1796
|
-
const def = element ? new CustomDataFormat({...element}) : new CustomDataFormat();
|
1797
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1798
|
-
return def;
|
1799
|
-
}
|
1800
|
-
|
1801
|
-
static createDataFormatsDefinition = (element: any): DataFormatsDefinition => {
|
1802
|
-
const def = element ? new DataFormatsDefinition({...element}) : new DataFormatsDefinition();
|
1803
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1804
|
-
if (element?.asn1 !== undefined) {
|
1805
|
-
def.asn1 = CamelDefinitionApi.createASN1DataFormat(element.asn1);
|
1806
|
-
}
|
1807
|
-
if (element?.avro !== undefined) {
|
1808
|
-
def.avro = CamelDefinitionApi.createAvroDataFormat(element.avro);
|
1809
|
-
}
|
1810
|
-
if (element?.barcode !== undefined) {
|
1811
|
-
def.barcode = CamelDefinitionApi.createBarcodeDataFormat(element.barcode);
|
1812
|
-
}
|
1813
|
-
if (element?.base64 !== undefined) {
|
1814
|
-
def.base64 = CamelDefinitionApi.createBase64DataFormat(element.base64);
|
1815
|
-
}
|
1816
|
-
if (element?.beanio !== undefined) {
|
1817
|
-
def.beanio = CamelDefinitionApi.createBeanioDataFormat(element.beanio);
|
1818
|
-
}
|
1819
|
-
if (element?.bindy !== undefined) {
|
1820
|
-
def.bindy = CamelDefinitionApi.createBindyDataFormat(element.bindy);
|
1821
|
-
}
|
1822
|
-
if (element?.cbor !== undefined) {
|
1823
|
-
def.cbor = CamelDefinitionApi.createCBORDataFormat(element.cbor);
|
1824
|
-
}
|
1825
|
-
if (element?.crypto !== undefined) {
|
1826
|
-
def.crypto = CamelDefinitionApi.createCryptoDataFormat(element.crypto);
|
1827
|
-
}
|
1828
|
-
if (element?.csv !== undefined) {
|
1829
|
-
def.csv = CamelDefinitionApi.createCsvDataFormat(element.csv);
|
1830
|
-
}
|
1831
|
-
if (element?.custom !== undefined) {
|
1832
|
-
def.custom = CamelDefinitionApi.createCustomDataFormat(element.custom);
|
1833
|
-
}
|
1834
|
-
if (element?.fhirJson !== undefined) {
|
1835
|
-
def.fhirJson = CamelDefinitionApi.createFhirJsonDataFormat(element.fhirJson);
|
1836
|
-
}
|
1837
|
-
if (element?.fhirXml !== undefined) {
|
1838
|
-
def.fhirXml = CamelDefinitionApi.createFhirXmlDataFormat(element.fhirXml);
|
1839
|
-
}
|
1840
|
-
if (element?.flatpack !== undefined) {
|
1841
|
-
def.flatpack = CamelDefinitionApi.createFlatpackDataFormat(element.flatpack);
|
1842
|
-
}
|
1843
|
-
if (element?.grok !== undefined) {
|
1844
|
-
def.grok = CamelDefinitionApi.createGrokDataFormat(element.grok);
|
1845
|
-
}
|
1846
|
-
if (element?.gzipDeflater !== undefined) {
|
1847
|
-
def.gzipDeflater = CamelDefinitionApi.createGzipDeflaterDataFormat(element.gzipDeflater);
|
1848
|
-
}
|
1849
|
-
if (element?.hl7 !== undefined) {
|
1850
|
-
def.hl7 = CamelDefinitionApi.createHL7DataFormat(element.hl7);
|
1851
|
-
}
|
1852
|
-
if (element?.ical !== undefined) {
|
1853
|
-
def.ical = CamelDefinitionApi.createIcalDataFormat(element.ical);
|
1854
|
-
}
|
1855
|
-
if (element?.jacksonXml !== undefined) {
|
1856
|
-
def.jacksonXml = CamelDefinitionApi.createJacksonXMLDataFormat(element.jacksonXml);
|
1857
|
-
}
|
1858
|
-
if (element?.jaxb !== undefined) {
|
1859
|
-
def.jaxb = CamelDefinitionApi.createJaxbDataFormat(element.jaxb);
|
1860
|
-
}
|
1861
|
-
if (element?.json !== undefined) {
|
1862
|
-
def.json = CamelDefinitionApi.createJsonDataFormat(element.json);
|
1863
|
-
}
|
1864
|
-
if (element?.jsonApi !== undefined) {
|
1865
|
-
def.jsonApi = CamelDefinitionApi.createJsonApiDataFormat(element.jsonApi);
|
1866
|
-
}
|
1867
|
-
if (element?.lzf !== undefined) {
|
1868
|
-
def.lzf = CamelDefinitionApi.createLZFDataFormat(element.lzf);
|
1869
|
-
}
|
1870
|
-
if (element?.mimeMultipart !== undefined) {
|
1871
|
-
def.mimeMultipart = CamelDefinitionApi.createMimeMultipartDataFormat(element.mimeMultipart);
|
1872
|
-
}
|
1873
|
-
if (element?.parquetAvro !== undefined) {
|
1874
|
-
def.parquetAvro = CamelDefinitionApi.createParquetAvroDataFormat(element.parquetAvro);
|
1875
|
-
}
|
1876
|
-
if (element?.pgp !== undefined) {
|
1877
|
-
def.pgp = CamelDefinitionApi.createPGPDataFormat(element.pgp);
|
1878
|
-
}
|
1879
|
-
if (element?.protobuf !== undefined) {
|
1880
|
-
def.protobuf = CamelDefinitionApi.createProtobufDataFormat(element.protobuf);
|
1881
|
-
}
|
1882
|
-
if (element?.rss !== undefined) {
|
1883
|
-
def.rss = CamelDefinitionApi.createRssDataFormat(element.rss);
|
1884
|
-
}
|
1885
|
-
if (element?.soap !== undefined) {
|
1886
|
-
def.soap = CamelDefinitionApi.createSoapDataFormat(element.soap);
|
1887
|
-
}
|
1888
|
-
if (element?.swiftMt !== undefined) {
|
1889
|
-
def.swiftMt = CamelDefinitionApi.createSwiftMtDataFormat(element.swiftMt);
|
1890
|
-
}
|
1891
|
-
if (element?.swiftMx !== undefined) {
|
1892
|
-
def.swiftMx = CamelDefinitionApi.createSwiftMxDataFormat(element.swiftMx);
|
1893
|
-
}
|
1894
|
-
if (element?.syslog !== undefined) {
|
1895
|
-
def.syslog = CamelDefinitionApi.createSyslogDataFormat(element.syslog);
|
1896
|
-
}
|
1897
|
-
if (element?.tarFile !== undefined) {
|
1898
|
-
def.tarFile = CamelDefinitionApi.createTarFileDataFormat(element.tarFile);
|
1899
|
-
}
|
1900
|
-
if (element?.thrift !== undefined) {
|
1901
|
-
def.thrift = CamelDefinitionApi.createThriftDataFormat(element.thrift);
|
1902
|
-
}
|
1903
|
-
if (element?.tidyMarkup !== undefined) {
|
1904
|
-
def.tidyMarkup = CamelDefinitionApi.createTidyMarkupDataFormat(element.tidyMarkup);
|
1905
|
-
}
|
1906
|
-
if (element?.univocityCsv !== undefined) {
|
1907
|
-
def.univocityCsv = CamelDefinitionApi.createUniVocityCsvDataFormat(element.univocityCsv);
|
1908
|
-
}
|
1909
|
-
if (element?.univocityFixed !== undefined) {
|
1910
|
-
def.univocityFixed = CamelDefinitionApi.createUniVocityFixedDataFormat(element.univocityFixed);
|
1911
|
-
}
|
1912
|
-
if (element?.univocityTsv !== undefined) {
|
1913
|
-
def.univocityTsv = CamelDefinitionApi.createUniVocityTsvDataFormat(element.univocityTsv);
|
1914
|
-
}
|
1915
|
-
if (element?.xmlSecurity !== undefined) {
|
1916
|
-
def.xmlSecurity = CamelDefinitionApi.createXMLSecurityDataFormat(element.xmlSecurity);
|
1917
|
-
}
|
1918
|
-
if (element?.yaml !== undefined) {
|
1919
|
-
def.yaml = CamelDefinitionApi.createYAMLDataFormat(element.yaml);
|
1920
|
-
}
|
1921
|
-
if (element?.zipDeflater !== undefined) {
|
1922
|
-
def.zipDeflater = CamelDefinitionApi.createZipDeflaterDataFormat(element.zipDeflater);
|
1923
|
-
}
|
1924
|
-
if (element?.zipFile !== undefined) {
|
1925
|
-
def.zipFile = CamelDefinitionApi.createZipFileDataFormat(element.zipFile);
|
1926
|
-
}
|
1927
|
-
return def;
|
1928
|
-
}
|
1929
|
-
|
1930
|
-
static createFhirJsonDataFormat = (element: any): FhirJsonDataFormat => {
|
1931
|
-
const def = element ? new FhirJsonDataFormat({...element}) : new FhirJsonDataFormat();
|
1932
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1933
|
-
return def;
|
1934
|
-
}
|
1935
|
-
|
1936
|
-
static createFhirXmlDataFormat = (element: any): FhirXmlDataFormat => {
|
1937
|
-
const def = element ? new FhirXmlDataFormat({...element}) : new FhirXmlDataFormat();
|
1938
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1939
|
-
return def;
|
1940
|
-
}
|
1941
|
-
|
1942
|
-
static createFlatpackDataFormat = (element: any): FlatpackDataFormat => {
|
1943
|
-
const def = element ? new FlatpackDataFormat({...element}) : new FlatpackDataFormat();
|
1944
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1945
|
-
return def;
|
1946
|
-
}
|
1947
|
-
|
1948
|
-
static createGrokDataFormat = (element: any): GrokDataFormat => {
|
1949
|
-
const def = element ? new GrokDataFormat({...element}) : new GrokDataFormat();
|
1950
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1951
|
-
return def;
|
1952
|
-
}
|
1953
|
-
|
1954
|
-
static createGzipDeflaterDataFormat = (element: any): GzipDeflaterDataFormat => {
|
1955
|
-
const def = element ? new GzipDeflaterDataFormat({...element}) : new GzipDeflaterDataFormat();
|
1956
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1957
|
-
return def;
|
1958
|
-
}
|
1959
|
-
|
1960
|
-
static createHL7DataFormat = (element: any): HL7DataFormat => {
|
1961
|
-
const def = element ? new HL7DataFormat({...element}) : new HL7DataFormat();
|
1962
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1963
|
-
return def;
|
1964
|
-
}
|
1965
|
-
|
1966
|
-
static createIcalDataFormat = (element: any): IcalDataFormat => {
|
1967
|
-
const def = element ? new IcalDataFormat({...element}) : new IcalDataFormat();
|
1968
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1969
|
-
return def;
|
1970
|
-
}
|
1971
|
-
|
1972
|
-
static createJacksonXMLDataFormat = (element: any): JacksonXMLDataFormat => {
|
1973
|
-
const def = element ? new JacksonXMLDataFormat({...element}) : new JacksonXMLDataFormat();
|
1974
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1975
|
-
return def;
|
1976
|
-
}
|
1977
|
-
|
1978
|
-
static createJaxbDataFormat = (element: any): JaxbDataFormat => {
|
1979
|
-
const def = element ? new JaxbDataFormat({...element}) : new JaxbDataFormat();
|
1980
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1981
|
-
return def;
|
1982
|
-
}
|
1983
|
-
|
1984
|
-
static createJsonApiDataFormat = (element: any): JsonApiDataFormat => {
|
1985
|
-
const def = element ? new JsonApiDataFormat({...element}) : new JsonApiDataFormat();
|
1986
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1987
|
-
return def;
|
1988
|
-
}
|
1989
|
-
|
1990
|
-
static createJsonDataFormat = (element: any): JsonDataFormat => {
|
1991
|
-
const def = element ? new JsonDataFormat({...element}) : new JsonDataFormat();
|
1992
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1993
|
-
return def;
|
1994
|
-
}
|
1995
|
-
|
1996
|
-
static createLZFDataFormat = (element: any): LZFDataFormat => {
|
1997
|
-
const def = element ? new LZFDataFormat({...element}) : new LZFDataFormat();
|
1998
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
1999
|
-
return def;
|
2000
|
-
}
|
2001
|
-
|
2002
|
-
static createMimeMultipartDataFormat = (element: any): MimeMultipartDataFormat => {
|
2003
|
-
const def = element ? new MimeMultipartDataFormat({...element}) : new MimeMultipartDataFormat();
|
2004
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2005
|
-
return def;
|
2006
|
-
}
|
2007
|
-
|
2008
|
-
static createPGPDataFormat = (element: any): PGPDataFormat => {
|
2009
|
-
const def = element ? new PGPDataFormat({...element}) : new PGPDataFormat();
|
2010
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2011
|
-
return def;
|
2012
|
-
}
|
2013
|
-
|
2014
|
-
static createParquetAvroDataFormat = (element: any): ParquetAvroDataFormat => {
|
2015
|
-
const def = element ? new ParquetAvroDataFormat({...element}) : new ParquetAvroDataFormat();
|
2016
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2017
|
-
return def;
|
2018
|
-
}
|
2019
|
-
|
2020
|
-
static createProtobufDataFormat = (element: any): ProtobufDataFormat => {
|
2021
|
-
const def = element ? new ProtobufDataFormat({...element}) : new ProtobufDataFormat();
|
2022
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2023
|
-
return def;
|
2024
|
-
}
|
2025
|
-
|
2026
|
-
static createRssDataFormat = (element: any): RssDataFormat => {
|
2027
|
-
const def = element ? new RssDataFormat({...element}) : new RssDataFormat();
|
2028
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2029
|
-
return def;
|
2030
|
-
}
|
2031
|
-
|
2032
|
-
static createSoapDataFormat = (element: any): SoapDataFormat => {
|
2033
|
-
if (element && typeof element === 'string') {
|
2034
|
-
element = {contextPath: element};
|
2035
|
-
}
|
2036
|
-
const def = element ? new SoapDataFormat({...element}) : new SoapDataFormat();
|
2037
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2038
|
-
return def;
|
2039
|
-
}
|
2040
|
-
|
2041
|
-
static createSwiftMtDataFormat = (element: any): SwiftMtDataFormat => {
|
2042
|
-
const def = element ? new SwiftMtDataFormat({...element}) : new SwiftMtDataFormat();
|
2043
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2044
|
-
return def;
|
2045
|
-
}
|
2046
|
-
|
2047
|
-
static createSwiftMxDataFormat = (element: any): SwiftMxDataFormat => {
|
2048
|
-
const def = element ? new SwiftMxDataFormat({...element}) : new SwiftMxDataFormat();
|
2049
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2050
|
-
return def;
|
2051
|
-
}
|
2052
|
-
|
2053
|
-
static createSyslogDataFormat = (element: any): SyslogDataFormat => {
|
2054
|
-
const def = element ? new SyslogDataFormat({...element}) : new SyslogDataFormat();
|
2055
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2056
|
-
return def;
|
2057
|
-
}
|
2058
|
-
|
2059
|
-
static createTarFileDataFormat = (element: any): TarFileDataFormat => {
|
2060
|
-
const def = element ? new TarFileDataFormat({...element}) : new TarFileDataFormat();
|
2061
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2062
|
-
return def;
|
2063
|
-
}
|
2064
|
-
|
2065
|
-
static createThriftDataFormat = (element: any): ThriftDataFormat => {
|
2066
|
-
const def = element ? new ThriftDataFormat({...element}) : new ThriftDataFormat();
|
2067
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2068
|
-
return def;
|
2069
|
-
}
|
2070
|
-
|
2071
|
-
static createTidyMarkupDataFormat = (element: any): TidyMarkupDataFormat => {
|
2072
|
-
const def = element ? new TidyMarkupDataFormat({...element}) : new TidyMarkupDataFormat();
|
2073
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2074
|
-
return def;
|
2075
|
-
}
|
2076
|
-
|
2077
|
-
static createUniVocityCsvDataFormat = (element: any): UniVocityCsvDataFormat => {
|
2078
|
-
const def = element ? new UniVocityCsvDataFormat({...element}) : new UniVocityCsvDataFormat();
|
2079
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2080
|
-
def.univocityHeader = element && element?.univocityHeader ? element?.univocityHeader.map((x:any) => CamelDefinitionApi.createUniVocityHeader(x)) :[];
|
2081
|
-
return def;
|
2082
|
-
}
|
2083
|
-
|
2084
|
-
static createUniVocityFixedDataFormat = (element: any): UniVocityFixedDataFormat => {
|
2085
|
-
const def = element ? new UniVocityFixedDataFormat({...element}) : new UniVocityFixedDataFormat();
|
2086
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2087
|
-
def.univocityHeader = element && element?.univocityHeader ? element?.univocityHeader.map((x:any) => CamelDefinitionApi.createUniVocityHeader(x)) :[];
|
2088
|
-
return def;
|
2089
|
-
}
|
2090
|
-
|
2091
|
-
static createUniVocityHeader = (element: any): UniVocityHeader => {
|
2092
|
-
const def = element ? new UniVocityHeader({...element}) : new UniVocityHeader();
|
2093
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2094
|
-
return def;
|
2095
|
-
}
|
2096
|
-
|
2097
|
-
static createUniVocityTsvDataFormat = (element: any): UniVocityTsvDataFormat => {
|
2098
|
-
const def = element ? new UniVocityTsvDataFormat({...element}) : new UniVocityTsvDataFormat();
|
2099
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2100
|
-
def.univocityHeader = element && element?.univocityHeader ? element?.univocityHeader.map((x:any) => CamelDefinitionApi.createUniVocityHeader(x)) :[];
|
2101
|
-
return def;
|
2102
|
-
}
|
2103
|
-
|
2104
|
-
static createXMLSecurityDataFormat = (element: any): XMLSecurityDataFormat => {
|
2105
|
-
const def = element ? new XMLSecurityDataFormat({...element}) : new XMLSecurityDataFormat();
|
2106
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2107
|
-
return def;
|
2108
|
-
}
|
2109
|
-
|
2110
|
-
static createYAMLDataFormat = (element: any): YAMLDataFormat => {
|
2111
|
-
const def = element ? new YAMLDataFormat({...element}) : new YAMLDataFormat();
|
2112
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2113
|
-
def.typeFilter = element && element?.typeFilter ? element?.typeFilter.map((x:any) => CamelDefinitionApi.createYAMLTypeFilterDefinition(x)) :[];
|
2114
|
-
return def;
|
2115
|
-
}
|
2116
|
-
|
2117
|
-
static createYAMLTypeFilterDefinition = (element: any): YAMLTypeFilterDefinition => {
|
2118
|
-
const def = element ? new YAMLTypeFilterDefinition({...element}) : new YAMLTypeFilterDefinition();
|
2119
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2120
|
-
return def;
|
2121
|
-
}
|
2122
|
-
|
2123
|
-
static createZipDeflaterDataFormat = (element: any): ZipDeflaterDataFormat => {
|
2124
|
-
const def = element ? new ZipDeflaterDataFormat({...element}) : new ZipDeflaterDataFormat();
|
2125
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2126
|
-
return def;
|
2127
|
-
}
|
2128
|
-
|
2129
|
-
static createZipFileDataFormat = (element: any): ZipFileDataFormat => {
|
2130
|
-
const def = element ? new ZipFileDataFormat({...element}) : new ZipFileDataFormat();
|
2131
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2132
|
-
return def;
|
2133
|
-
}
|
2134
|
-
|
2135
|
-
static createDeadLetterChannelDefinition = (element: any): DeadLetterChannelDefinition => {
|
2136
|
-
const def = element ? new DeadLetterChannelDefinition({...element}) : new DeadLetterChannelDefinition();
|
2137
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2138
|
-
if (element?.redeliveryPolicy !== undefined) {
|
2139
|
-
def.redeliveryPolicy = CamelDefinitionApi.createRedeliveryPolicyDefinition(element.redeliveryPolicy);
|
2140
|
-
}
|
2141
|
-
return def;
|
2142
|
-
}
|
2143
|
-
|
2144
|
-
static createDefaultErrorHandlerDefinition = (element: any): DefaultErrorHandlerDefinition => {
|
2145
|
-
const def = element ? new DefaultErrorHandlerDefinition({...element}) : new DefaultErrorHandlerDefinition();
|
2146
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2147
|
-
if (element?.redeliveryPolicy !== undefined) {
|
2148
|
-
def.redeliveryPolicy = CamelDefinitionApi.createRedeliveryPolicyDefinition(element.redeliveryPolicy);
|
2149
|
-
}
|
2150
|
-
return def;
|
2151
|
-
}
|
2152
|
-
|
2153
|
-
static createJtaTransactionErrorHandlerDefinition = (element: any): JtaTransactionErrorHandlerDefinition => {
|
2154
|
-
const def = element ? new JtaTransactionErrorHandlerDefinition({...element}) : new JtaTransactionErrorHandlerDefinition();
|
2155
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2156
|
-
if (element?.redeliveryPolicy !== undefined) {
|
2157
|
-
def.redeliveryPolicy = CamelDefinitionApi.createRedeliveryPolicyDefinition(element.redeliveryPolicy);
|
2158
|
-
}
|
2159
|
-
return def;
|
2160
|
-
}
|
2161
|
-
|
2162
|
-
static createNoErrorHandlerDefinition = (element: any): NoErrorHandlerDefinition => {
|
2163
|
-
const def = element ? new NoErrorHandlerDefinition({...element}) : new NoErrorHandlerDefinition();
|
2164
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2165
|
-
return def;
|
2166
|
-
}
|
2167
|
-
|
2168
|
-
static createRefErrorHandlerDefinition = (element: any): RefErrorHandlerDefinition => {
|
2169
|
-
if (element && typeof element === 'string') {
|
2170
|
-
element = {ref: element};
|
2171
|
-
}
|
2172
|
-
const def = element ? new RefErrorHandlerDefinition({...element}) : new RefErrorHandlerDefinition();
|
2173
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2174
|
-
return def;
|
2175
|
-
}
|
2176
|
-
|
2177
|
-
static createSpringTransactionErrorHandlerDefinition = (element: any): SpringTransactionErrorHandlerDefinition => {
|
2178
|
-
const def = element ? new SpringTransactionErrorHandlerDefinition({...element}) : new SpringTransactionErrorHandlerDefinition();
|
2179
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2180
|
-
if (element?.redeliveryPolicy !== undefined) {
|
2181
|
-
def.redeliveryPolicy = CamelDefinitionApi.createRedeliveryPolicyDefinition(element.redeliveryPolicy);
|
2182
|
-
}
|
2183
|
-
return def;
|
2184
|
-
}
|
2185
|
-
|
2186
|
-
static createCSimpleExpression = (element: any): CSimpleExpression => {
|
2187
|
-
if (element && typeof element === 'string') {
|
2188
|
-
element = {expression: element};
|
2189
|
-
}
|
2190
|
-
const def = element ? new CSimpleExpression({...element}) : new CSimpleExpression();
|
2191
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2192
|
-
return def;
|
2193
|
-
}
|
2194
|
-
|
2195
|
-
static createConstantExpression = (element: any): ConstantExpression => {
|
2196
|
-
if (element && typeof element === 'string') {
|
2197
|
-
element = {expression: element};
|
2198
|
-
}
|
2199
|
-
const def = element ? new ConstantExpression({...element}) : new ConstantExpression();
|
2200
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2201
|
-
return def;
|
2202
|
-
}
|
2203
|
-
|
2204
|
-
static createDatasonnetExpression = (element: any): DatasonnetExpression => {
|
2205
|
-
if (element && typeof element === 'string') {
|
2206
|
-
element = {expression: element};
|
2207
|
-
}
|
2208
|
-
const def = element ? new DatasonnetExpression({...element}) : new DatasonnetExpression();
|
2209
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2210
|
-
return def;
|
2211
|
-
}
|
2212
|
-
|
2213
|
-
static createExchangePropertyExpression = (element: any): ExchangePropertyExpression => {
|
2214
|
-
if (element && typeof element === 'string') {
|
2215
|
-
element = {expression: element};
|
2216
|
-
}
|
2217
|
-
const def = element ? new ExchangePropertyExpression({...element}) : new ExchangePropertyExpression();
|
2218
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2219
|
-
return def;
|
2220
|
-
}
|
2221
|
-
|
2222
|
-
static createExpressionDefinition = (element: any): ExpressionDefinition => {
|
2223
|
-
const def = element ? new ExpressionDefinition({...element}) : new ExpressionDefinition();
|
2224
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2225
|
-
element = element !== undefined ? element : {groovy: CamelDefinitionApi.createGroovyExpression({expression: ""})}
|
2226
|
-
if (element?.constant !== undefined) {
|
2227
|
-
def.constant = CamelDefinitionApi.createConstantExpression(element.constant);
|
2228
|
-
}
|
2229
|
-
if (element?.csimple !== undefined) {
|
2230
|
-
def.csimple = CamelDefinitionApi.createCSimpleExpression(element.csimple);
|
2231
|
-
}
|
2232
|
-
if (element?.datasonnet !== undefined) {
|
2233
|
-
def.datasonnet = CamelDefinitionApi.createDatasonnetExpression(element.datasonnet);
|
2234
|
-
}
|
2235
|
-
if (element?.exchangeProperty !== undefined) {
|
2236
|
-
def.exchangeProperty = CamelDefinitionApi.createExchangePropertyExpression(element.exchangeProperty);
|
2237
|
-
}
|
2238
|
-
if (element?.groovy !== undefined) {
|
2239
|
-
def.groovy = CamelDefinitionApi.createGroovyExpression(element.groovy);
|
2240
|
-
}
|
2241
|
-
if (element?.header !== undefined) {
|
2242
|
-
def.header = CamelDefinitionApi.createHeaderExpression(element.header);
|
2243
|
-
}
|
2244
|
-
if (element?.hl7terser !== undefined) {
|
2245
|
-
def.hl7terser = CamelDefinitionApi.createHl7TerserExpression(element.hl7terser);
|
2246
|
-
}
|
2247
|
-
if (element?.java !== undefined) {
|
2248
|
-
def.java = CamelDefinitionApi.createJavaExpression(element.java);
|
2249
|
-
}
|
2250
|
-
if (element?.jq !== undefined) {
|
2251
|
-
def.jq = CamelDefinitionApi.createJqExpression(element.jq);
|
2252
|
-
}
|
2253
|
-
if (element?.js !== undefined) {
|
2254
|
-
def.js = CamelDefinitionApi.createJavaScriptExpression(element.js);
|
2255
|
-
}
|
2256
|
-
if (element?.jsonpath !== undefined) {
|
2257
|
-
def.jsonpath = CamelDefinitionApi.createJsonPathExpression(element.jsonpath);
|
2258
|
-
}
|
2259
|
-
if (element?.language !== undefined) {
|
2260
|
-
def.language = CamelDefinitionApi.createLanguageExpression(element.language);
|
2261
|
-
}
|
2262
|
-
if (element?.method !== undefined) {
|
2263
|
-
def.method = CamelDefinitionApi.createMethodCallExpression(element.method);
|
2264
|
-
}
|
2265
|
-
if (element?.mvel !== undefined) {
|
2266
|
-
def.mvel = CamelDefinitionApi.createMvelExpression(element.mvel);
|
2267
|
-
}
|
2268
|
-
if (element?.ognl !== undefined) {
|
2269
|
-
def.ognl = CamelDefinitionApi.createOgnlExpression(element.ognl);
|
2270
|
-
}
|
2271
|
-
if (element?.python !== undefined) {
|
2272
|
-
def.python = CamelDefinitionApi.createPythonExpression(element.python);
|
2273
|
-
}
|
2274
|
-
if (element?.ref !== undefined) {
|
2275
|
-
def.ref = CamelDefinitionApi.createRefExpression(element.ref);
|
2276
|
-
}
|
2277
|
-
if (element?.simple !== undefined) {
|
2278
|
-
def.simple = CamelDefinitionApi.createSimpleExpression(element.simple);
|
2279
|
-
}
|
2280
|
-
if (element?.spel !== undefined) {
|
2281
|
-
def.spel = CamelDefinitionApi.createSpELExpression(element.spel);
|
2282
|
-
}
|
2283
|
-
if (element?.tokenize !== undefined) {
|
2284
|
-
def.tokenize = CamelDefinitionApi.createTokenizerExpression(element.tokenize);
|
2285
|
-
}
|
2286
|
-
if (element?.variable !== undefined) {
|
2287
|
-
def.variable = CamelDefinitionApi.createVariableExpression(element.variable);
|
2288
|
-
}
|
2289
|
-
if (element?.wasm !== undefined) {
|
2290
|
-
def.wasm = CamelDefinitionApi.createWasmExpression(element.wasm);
|
2291
|
-
}
|
2292
|
-
if (element?.xpath !== undefined) {
|
2293
|
-
def.xpath = CamelDefinitionApi.createXPathExpression(element.xpath);
|
2294
|
-
}
|
2295
|
-
if (element?.xquery !== undefined) {
|
2296
|
-
def.xquery = CamelDefinitionApi.createXQueryExpression(element.xquery);
|
2297
|
-
}
|
2298
|
-
if (element?.xtokenize !== undefined) {
|
2299
|
-
def.xtokenize = CamelDefinitionApi.createXMLTokenizerExpression(element.xtokenize);
|
2300
|
-
}
|
2301
|
-
return def;
|
2302
|
-
}
|
2303
|
-
|
2304
|
-
static createGroovyExpression = (element: any): GroovyExpression => {
|
2305
|
-
if (element && typeof element === 'string') {
|
2306
|
-
element = {expression: element};
|
2307
|
-
}
|
2308
|
-
const def = element ? new GroovyExpression({...element}) : new GroovyExpression();
|
2309
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2310
|
-
return def;
|
2311
|
-
}
|
2312
|
-
|
2313
|
-
static createHeaderExpression = (element: any): HeaderExpression => {
|
2314
|
-
if (element && typeof element === 'string') {
|
2315
|
-
element = {expression: element};
|
2316
|
-
}
|
2317
|
-
const def = element ? new HeaderExpression({...element}) : new HeaderExpression();
|
2318
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2319
|
-
return def;
|
2320
|
-
}
|
2321
|
-
|
2322
|
-
static createHl7TerserExpression = (element: any): Hl7TerserExpression => {
|
2323
|
-
if (element && typeof element === 'string') {
|
2324
|
-
element = {expression: element};
|
2325
|
-
}
|
2326
|
-
const def = element ? new Hl7TerserExpression({...element}) : new Hl7TerserExpression();
|
2327
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2328
|
-
return def;
|
2329
|
-
}
|
2330
|
-
|
2331
|
-
static createJavaExpression = (element: any): JavaExpression => {
|
2332
|
-
if (element && typeof element === 'string') {
|
2333
|
-
element = {expression: element};
|
2334
|
-
}
|
2335
|
-
const def = element ? new JavaExpression({...element}) : new JavaExpression();
|
2336
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2337
|
-
return def;
|
2338
|
-
}
|
2339
|
-
|
2340
|
-
static createJavaScriptExpression = (element: any): JavaScriptExpression => {
|
2341
|
-
if (element && typeof element === 'string') {
|
2342
|
-
element = {expression: element};
|
2343
|
-
}
|
2344
|
-
const def = element ? new JavaScriptExpression({...element}) : new JavaScriptExpression();
|
2345
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2346
|
-
return def;
|
2347
|
-
}
|
2348
|
-
|
2349
|
-
static createJqExpression = (element: any): JqExpression => {
|
2350
|
-
if (element && typeof element === 'string') {
|
2351
|
-
element = {expression: element};
|
2352
|
-
}
|
2353
|
-
const def = element ? new JqExpression({...element}) : new JqExpression();
|
2354
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2355
|
-
return def;
|
2356
|
-
}
|
2357
|
-
|
2358
|
-
static createJsonPathExpression = (element: any): JsonPathExpression => {
|
2359
|
-
if (element && typeof element === 'string') {
|
2360
|
-
element = {expression: element};
|
2361
|
-
}
|
2362
|
-
const def = element ? new JsonPathExpression({...element}) : new JsonPathExpression();
|
2363
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2364
|
-
return def;
|
2365
|
-
}
|
2366
|
-
|
2367
|
-
static createLanguageExpression = (element: any): LanguageExpression => {
|
2368
|
-
const def = element ? new LanguageExpression({...element}) : new LanguageExpression();
|
2369
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2370
|
-
return def;
|
2371
|
-
}
|
2372
|
-
|
2373
|
-
static createMethodCallExpression = (element: any): MethodCallExpression => {
|
2374
|
-
const def = element ? new MethodCallExpression({...element}) : new MethodCallExpression();
|
2375
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2376
|
-
return def;
|
2377
|
-
}
|
2378
|
-
|
2379
|
-
static createMvelExpression = (element: any): MvelExpression => {
|
2380
|
-
if (element && typeof element === 'string') {
|
2381
|
-
element = {expression: element};
|
2382
|
-
}
|
2383
|
-
const def = element ? new MvelExpression({...element}) : new MvelExpression();
|
2384
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2385
|
-
return def;
|
2386
|
-
}
|
2387
|
-
|
2388
|
-
static createOgnlExpression = (element: any): OgnlExpression => {
|
2389
|
-
if (element && typeof element === 'string') {
|
2390
|
-
element = {expression: element};
|
2391
|
-
}
|
2392
|
-
const def = element ? new OgnlExpression({...element}) : new OgnlExpression();
|
2393
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2394
|
-
return def;
|
2395
|
-
}
|
2396
|
-
|
2397
|
-
static createPythonExpression = (element: any): PythonExpression => {
|
2398
|
-
if (element && typeof element === 'string') {
|
2399
|
-
element = {expression: element};
|
2400
|
-
}
|
2401
|
-
const def = element ? new PythonExpression({...element}) : new PythonExpression();
|
2402
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2403
|
-
return def;
|
2404
|
-
}
|
2405
|
-
|
2406
|
-
static createRefExpression = (element: any): RefExpression => {
|
2407
|
-
if (element && typeof element === 'string') {
|
2408
|
-
element = {expression: element};
|
2409
|
-
}
|
2410
|
-
const def = element ? new RefExpression({...element}) : new RefExpression();
|
2411
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2412
|
-
return def;
|
2413
|
-
}
|
2414
|
-
|
2415
|
-
static createSimpleExpression = (element: any): SimpleExpression => {
|
2416
|
-
if (element && typeof element === 'string') {
|
2417
|
-
element = {expression: element};
|
2418
|
-
}
|
2419
|
-
const def = element ? new SimpleExpression({...element}) : new SimpleExpression();
|
2420
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2421
|
-
return def;
|
2422
|
-
}
|
2423
|
-
|
2424
|
-
static createSpELExpression = (element: any): SpELExpression => {
|
2425
|
-
if (element && typeof element === 'string') {
|
2426
|
-
element = {expression: element};
|
2427
|
-
}
|
2428
|
-
const def = element ? new SpELExpression({...element}) : new SpELExpression();
|
2429
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2430
|
-
return def;
|
2431
|
-
}
|
2432
|
-
|
2433
|
-
static createTokenizerExpression = (element: any): TokenizerExpression => {
|
2434
|
-
if (element && typeof element === 'string') {
|
2435
|
-
element = {token: element};
|
2436
|
-
}
|
2437
|
-
const def = element ? new TokenizerExpression({...element}) : new TokenizerExpression();
|
2438
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2439
|
-
return def;
|
2440
|
-
}
|
2441
|
-
|
2442
|
-
static createVariableExpression = (element: any): VariableExpression => {
|
2443
|
-
if (element && typeof element === 'string') {
|
2444
|
-
element = {expression: element};
|
2445
|
-
}
|
2446
|
-
const def = element ? new VariableExpression({...element}) : new VariableExpression();
|
2447
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2448
|
-
return def;
|
2449
|
-
}
|
2450
|
-
|
2451
|
-
static createWasmExpression = (element: any): WasmExpression => {
|
2452
|
-
if (element && typeof element === 'string') {
|
2453
|
-
element = {expression: element};
|
2454
|
-
}
|
2455
|
-
const def = element ? new WasmExpression({...element}) : new WasmExpression();
|
2456
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2457
|
-
return def;
|
2458
|
-
}
|
2459
|
-
|
2460
|
-
static createXMLTokenizerExpression = (element: any): XMLTokenizerExpression => {
|
2461
|
-
if (element && typeof element === 'string') {
|
2462
|
-
element = {expression: element};
|
2463
|
-
}
|
2464
|
-
const def = element ? new XMLTokenizerExpression({...element}) : new XMLTokenizerExpression();
|
2465
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2466
|
-
def.namespace = element && element?.namespace ? element?.namespace.map((x:any) => CamelDefinitionApi.createPropertyDefinition(x)) :[];
|
2467
|
-
return def;
|
2468
|
-
}
|
2469
|
-
|
2470
|
-
static createXPathExpression = (element: any): XPathExpression => {
|
2471
|
-
if (element && typeof element === 'string') {
|
2472
|
-
element = {expression: element};
|
2473
|
-
}
|
2474
|
-
const def = element ? new XPathExpression({...element}) : new XPathExpression();
|
2475
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2476
|
-
def.namespace = element && element?.namespace ? element?.namespace.map((x:any) => CamelDefinitionApi.createPropertyDefinition(x)) :[];
|
2477
|
-
return def;
|
2478
|
-
}
|
2479
|
-
|
2480
|
-
static createXQueryExpression = (element: any): XQueryExpression => {
|
2481
|
-
if (element && typeof element === 'string') {
|
2482
|
-
element = {expression: element};
|
2483
|
-
}
|
2484
|
-
const def = element ? new XQueryExpression({...element}) : new XQueryExpression();
|
2485
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2486
|
-
def.namespace = element && element?.namespace ? element?.namespace.map((x:any) => CamelDefinitionApi.createPropertyDefinition(x)) :[];
|
2487
|
-
return def;
|
2488
|
-
}
|
2489
|
-
|
2490
|
-
static createCustomLoadBalancerDefinition = (element: any): CustomLoadBalancerDefinition => {
|
2491
|
-
if (element && typeof element === 'string') {
|
2492
|
-
element = {ref: element};
|
2493
|
-
}
|
2494
|
-
const def = element ? new CustomLoadBalancerDefinition({...element}) : new CustomLoadBalancerDefinition();
|
2495
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2496
|
-
return def;
|
2497
|
-
}
|
2498
|
-
|
2499
|
-
static createFailoverLoadBalancerDefinition = (element: any): FailoverLoadBalancerDefinition => {
|
2500
|
-
const def = element ? new FailoverLoadBalancerDefinition({...element}) : new FailoverLoadBalancerDefinition();
|
2501
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2502
|
-
return def;
|
2503
|
-
}
|
2504
|
-
|
2505
|
-
static createRandomLoadBalancerDefinition = (element: any): RandomLoadBalancerDefinition => {
|
2506
|
-
const def = element ? new RandomLoadBalancerDefinition({...element}) : new RandomLoadBalancerDefinition();
|
2507
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2508
|
-
return def;
|
2509
|
-
}
|
2510
|
-
|
2511
|
-
static createRoundRobinLoadBalancerDefinition = (element: any): RoundRobinLoadBalancerDefinition => {
|
2512
|
-
const def = element ? new RoundRobinLoadBalancerDefinition({...element}) : new RoundRobinLoadBalancerDefinition();
|
2513
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2514
|
-
return def;
|
2515
|
-
}
|
2516
|
-
|
2517
|
-
static createStickyLoadBalancerDefinition = (element: any): StickyLoadBalancerDefinition => {
|
2518
|
-
const def = element ? new StickyLoadBalancerDefinition({...element}) : new StickyLoadBalancerDefinition();
|
2519
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2520
|
-
if (element?.correlationExpression !== undefined) {
|
2521
|
-
def.correlationExpression = CamelDefinitionApi.createExpressionSubElementDefinition(element.correlationExpression);
|
2522
|
-
}
|
2523
|
-
return def;
|
2524
|
-
}
|
2525
|
-
|
2526
|
-
static createTopicLoadBalancerDefinition = (element: any): TopicLoadBalancerDefinition => {
|
2527
|
-
const def = element ? new TopicLoadBalancerDefinition({...element}) : new TopicLoadBalancerDefinition();
|
2528
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2529
|
-
return def;
|
2530
|
-
}
|
2531
|
-
|
2532
|
-
static createWeightedLoadBalancerDefinition = (element: any): WeightedLoadBalancerDefinition => {
|
2533
|
-
const def = element ? new WeightedLoadBalancerDefinition({...element}) : new WeightedLoadBalancerDefinition();
|
2534
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2535
|
-
return def;
|
2536
|
-
}
|
2537
|
-
|
2538
|
-
static createApiKeyDefinition = (element: any): ApiKeyDefinition => {
|
2539
|
-
const def = element ? new ApiKeyDefinition({...element}) : new ApiKeyDefinition();
|
2540
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2541
|
-
return def;
|
2542
|
-
}
|
2543
|
-
|
2544
|
-
static createBasicAuthDefinition = (element: any): BasicAuthDefinition => {
|
2545
|
-
const def = element ? new BasicAuthDefinition({...element}) : new BasicAuthDefinition();
|
2546
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2547
|
-
return def;
|
2548
|
-
}
|
2549
|
-
|
2550
|
-
static createBearerTokenDefinition = (element: any): BearerTokenDefinition => {
|
2551
|
-
const def = element ? new BearerTokenDefinition({...element}) : new BearerTokenDefinition();
|
2552
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2553
|
-
return def;
|
2554
|
-
}
|
2555
|
-
|
2556
|
-
static createDeleteDefinition = (element: any): DeleteDefinition => {
|
2557
|
-
const def = element ? new DeleteDefinition({...element}) : new DeleteDefinition();
|
2558
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2559
|
-
def.param = element && element?.param ? element?.param.map((x:any) => CamelDefinitionApi.createParamDefinition(x)) :[];
|
2560
|
-
def.responseMessage = element && element?.responseMessage ? element?.responseMessage.map((x:any) => CamelDefinitionApi.createResponseMessageDefinition(x)) :[];
|
2561
|
-
def.security = element && element?.security ? element?.security.map((x:any) => CamelDefinitionApi.createSecurityDefinition(x)) :[];
|
2562
|
-
return def;
|
2563
|
-
}
|
2564
|
-
|
2565
|
-
static createGetDefinition = (element: any): GetDefinition => {
|
2566
|
-
const def = element ? new GetDefinition({...element}) : new GetDefinition();
|
2567
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2568
|
-
def.param = element && element?.param ? element?.param.map((x:any) => CamelDefinitionApi.createParamDefinition(x)) :[];
|
2569
|
-
def.responseMessage = element && element?.responseMessage ? element?.responseMessage.map((x:any) => CamelDefinitionApi.createResponseMessageDefinition(x)) :[];
|
2570
|
-
def.security = element && element?.security ? element?.security.map((x:any) => CamelDefinitionApi.createSecurityDefinition(x)) :[];
|
2571
|
-
return def;
|
2572
|
-
}
|
2573
|
-
|
2574
|
-
static createHeadDefinition = (element: any): HeadDefinition => {
|
2575
|
-
const def = element ? new HeadDefinition({...element}) : new HeadDefinition();
|
2576
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2577
|
-
def.param = element && element?.param ? element?.param.map((x:any) => CamelDefinitionApi.createParamDefinition(x)) :[];
|
2578
|
-
def.responseMessage = element && element?.responseMessage ? element?.responseMessage.map((x:any) => CamelDefinitionApi.createResponseMessageDefinition(x)) :[];
|
2579
|
-
def.security = element && element?.security ? element?.security.map((x:any) => CamelDefinitionApi.createSecurityDefinition(x)) :[];
|
2580
|
-
return def;
|
2581
|
-
}
|
2582
|
-
|
2583
|
-
static createMutualTLSDefinition = (element: any): MutualTLSDefinition => {
|
2584
|
-
const def = element ? new MutualTLSDefinition({...element}) : new MutualTLSDefinition();
|
2585
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2586
|
-
return def;
|
2587
|
-
}
|
2588
|
-
|
2589
|
-
static createOAuth2Definition = (element: any): OAuth2Definition => {
|
2590
|
-
const def = element ? new OAuth2Definition({...element}) : new OAuth2Definition();
|
2591
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2592
|
-
def.scopes = element && element?.scopes ? element?.scopes.map((x:any) => CamelDefinitionApi.createRestPropertyDefinition(x)) :[];
|
2593
|
-
return def;
|
2594
|
-
}
|
2595
|
-
|
2596
|
-
static createOpenApiDefinition = (element: any): OpenApiDefinition => {
|
2597
|
-
const def = element ? new OpenApiDefinition({...element}) : new OpenApiDefinition();
|
2598
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2599
|
-
return def;
|
2600
|
-
}
|
2601
|
-
|
2602
|
-
static createOpenIdConnectDefinition = (element: any): OpenIdConnectDefinition => {
|
2603
|
-
const def = element ? new OpenIdConnectDefinition({...element}) : new OpenIdConnectDefinition();
|
2604
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2605
|
-
return def;
|
2606
|
-
}
|
2607
|
-
|
2608
|
-
static createParamDefinition = (element: any): ParamDefinition => {
|
2609
|
-
const def = element ? new ParamDefinition({...element}) : new ParamDefinition();
|
2610
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2611
|
-
def.examples = element && element?.examples ? element?.examples.map((x:any) => CamelDefinitionApi.createRestPropertyDefinition(x)) :[];
|
2612
|
-
return def;
|
2613
|
-
}
|
2614
|
-
|
2615
|
-
static createPatchDefinition = (element: any): PatchDefinition => {
|
2616
|
-
const def = element ? new PatchDefinition({...element}) : new PatchDefinition();
|
2617
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2618
|
-
def.param = element && element?.param ? element?.param.map((x:any) => CamelDefinitionApi.createParamDefinition(x)) :[];
|
2619
|
-
def.responseMessage = element && element?.responseMessage ? element?.responseMessage.map((x:any) => CamelDefinitionApi.createResponseMessageDefinition(x)) :[];
|
2620
|
-
def.security = element && element?.security ? element?.security.map((x:any) => CamelDefinitionApi.createSecurityDefinition(x)) :[];
|
2621
|
-
return def;
|
2622
|
-
}
|
2623
|
-
|
2624
|
-
static createPostDefinition = (element: any): PostDefinition => {
|
2625
|
-
const def = element ? new PostDefinition({...element}) : new PostDefinition();
|
2626
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2627
|
-
def.param = element && element?.param ? element?.param.map((x:any) => CamelDefinitionApi.createParamDefinition(x)) :[];
|
2628
|
-
def.responseMessage = element && element?.responseMessage ? element?.responseMessage.map((x:any) => CamelDefinitionApi.createResponseMessageDefinition(x)) :[];
|
2629
|
-
def.security = element && element?.security ? element?.security.map((x:any) => CamelDefinitionApi.createSecurityDefinition(x)) :[];
|
2630
|
-
return def;
|
2631
|
-
}
|
2632
|
-
|
2633
|
-
static createPutDefinition = (element: any): PutDefinition => {
|
2634
|
-
const def = element ? new PutDefinition({...element}) : new PutDefinition();
|
2635
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2636
|
-
def.param = element && element?.param ? element?.param.map((x:any) => CamelDefinitionApi.createParamDefinition(x)) :[];
|
2637
|
-
def.responseMessage = element && element?.responseMessage ? element?.responseMessage.map((x:any) => CamelDefinitionApi.createResponseMessageDefinition(x)) :[];
|
2638
|
-
def.security = element && element?.security ? element?.security.map((x:any) => CamelDefinitionApi.createSecurityDefinition(x)) :[];
|
2639
|
-
return def;
|
2640
|
-
}
|
2641
|
-
|
2642
|
-
static createResponseHeaderDefinition = (element: any): ResponseHeaderDefinition => {
|
2643
|
-
const def = element ? new ResponseHeaderDefinition({...element}) : new ResponseHeaderDefinition();
|
2644
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2645
|
-
return def;
|
2646
|
-
}
|
2647
|
-
|
2648
|
-
static createResponseMessageDefinition = (element: any): ResponseMessageDefinition => {
|
2649
|
-
const def = element ? new ResponseMessageDefinition({...element}) : new ResponseMessageDefinition();
|
2650
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2651
|
-
def.header = element && element?.header ? element?.header.map((x:any) => CamelDefinitionApi.createResponseHeaderDefinition(x)) :[];
|
2652
|
-
def.examples = element && element?.examples ? element?.examples.map((x:any) => CamelDefinitionApi.createRestPropertyDefinition(x)) :[];
|
2653
|
-
return def;
|
2654
|
-
}
|
2655
|
-
|
2656
|
-
static createRestBindingDefinition = (element: any): RestBindingDefinition => {
|
2657
|
-
const def = element ? new RestBindingDefinition({...element}) : new RestBindingDefinition();
|
2658
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2659
|
-
return def;
|
2660
|
-
}
|
2661
|
-
|
2662
|
-
static createRestConfigurationDefinition = (element: any): RestConfigurationDefinition => {
|
2663
|
-
const def = element ? new RestConfigurationDefinition({...element}) : new RestConfigurationDefinition();
|
2664
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2665
|
-
def.componentProperty = element && element?.componentProperty ? element?.componentProperty.map((x:any) => CamelDefinitionApi.createRestPropertyDefinition(x)) :[];
|
2666
|
-
def.endpointProperty = element && element?.endpointProperty ? element?.endpointProperty.map((x:any) => CamelDefinitionApi.createRestPropertyDefinition(x)) :[];
|
2667
|
-
def.consumerProperty = element && element?.consumerProperty ? element?.consumerProperty.map((x:any) => CamelDefinitionApi.createRestPropertyDefinition(x)) :[];
|
2668
|
-
def.dataFormatProperty = element && element?.dataFormatProperty ? element?.dataFormatProperty.map((x:any) => CamelDefinitionApi.createRestPropertyDefinition(x)) :[];
|
2669
|
-
def.apiProperty = element && element?.apiProperty ? element?.apiProperty.map((x:any) => CamelDefinitionApi.createRestPropertyDefinition(x)) :[];
|
2670
|
-
def.corsHeaders = element && element?.corsHeaders ? element?.corsHeaders.map((x:any) => CamelDefinitionApi.createRestPropertyDefinition(x)) :[];
|
2671
|
-
return def;
|
2672
|
-
}
|
2673
|
-
|
2674
|
-
static createRestDefinition = (element: any): RestDefinition => {
|
2675
|
-
const def = element ? new RestDefinition({...element}) : new RestDefinition();
|
2676
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2677
|
-
if (element?.openApi !== undefined) {
|
2678
|
-
def.openApi = CamelDefinitionApi.createOpenApiDefinition(element.openApi);
|
2679
|
-
}
|
2680
|
-
if (element?.securityDefinitions !== undefined) {
|
2681
|
-
def.securityDefinitions = CamelDefinitionApi.createRestSecuritiesDefinition(element.securityDefinitions);
|
2682
|
-
}
|
2683
|
-
def.securityRequirements = element && element?.securityRequirements ? element?.securityRequirements.map((x:any) => CamelDefinitionApi.createSecurityDefinition(x)) :[];
|
2684
|
-
def.delete = element && element?.delete ? element?.delete.map((x:any) => CamelDefinitionApi.createDeleteDefinition(x)) :[];
|
2685
|
-
def.get = element && element?.get ? element?.get.map((x:any) => CamelDefinitionApi.createGetDefinition(x)) :[];
|
2686
|
-
def.head = element && element?.head ? element?.head.map((x:any) => CamelDefinitionApi.createHeadDefinition(x)) :[];
|
2687
|
-
def.patch = element && element?.patch ? element?.patch.map((x:any) => CamelDefinitionApi.createPatchDefinition(x)) :[];
|
2688
|
-
def.post = element && element?.post ? element?.post.map((x:any) => CamelDefinitionApi.createPostDefinition(x)) :[];
|
2689
|
-
def.put = element && element?.put ? element?.put.map((x:any) => CamelDefinitionApi.createPutDefinition(x)) :[];
|
2690
|
-
return def;
|
2691
|
-
}
|
2692
|
-
|
2693
|
-
static createRestPropertyDefinition = (element: any): RestPropertyDefinition => {
|
2694
|
-
const def = element ? new RestPropertyDefinition({...element}) : new RestPropertyDefinition();
|
2695
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2696
|
-
return def;
|
2697
|
-
}
|
2698
|
-
|
2699
|
-
static createRestSecuritiesDefinition = (element: any): RestSecuritiesDefinition => {
|
2700
|
-
const def = element ? new RestSecuritiesDefinition({...element}) : new RestSecuritiesDefinition();
|
2701
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2702
|
-
if (element?.apiKey !== undefined) {
|
2703
|
-
def.apiKey = CamelDefinitionApi.createApiKeyDefinition(element.apiKey);
|
2704
|
-
}
|
2705
|
-
if (element?.basicAuth !== undefined) {
|
2706
|
-
def.basicAuth = CamelDefinitionApi.createBasicAuthDefinition(element.basicAuth);
|
2707
|
-
}
|
2708
|
-
if (element?.bearer !== undefined) {
|
2709
|
-
def.bearer = CamelDefinitionApi.createBearerTokenDefinition(element.bearer);
|
2710
|
-
}
|
2711
|
-
if (element?.mutualTLS !== undefined) {
|
2712
|
-
def.mutualTLS = CamelDefinitionApi.createMutualTLSDefinition(element.mutualTLS);
|
2713
|
-
}
|
2714
|
-
if (element?.oauth2 !== undefined) {
|
2715
|
-
def.oauth2 = CamelDefinitionApi.createOAuth2Definition(element.oauth2);
|
2716
|
-
}
|
2717
|
-
if (element?.openIdConnect !== undefined) {
|
2718
|
-
def.openIdConnect = CamelDefinitionApi.createOpenIdConnectDefinition(element.openIdConnect);
|
2719
|
-
}
|
2720
|
-
return def;
|
2721
|
-
}
|
2722
|
-
|
2723
|
-
static createRestsDefinition = (element: any): RestsDefinition => {
|
2724
|
-
const def = element ? new RestsDefinition({...element}) : new RestsDefinition();
|
2725
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2726
|
-
def.rest = element && element?.rest ? element?.rest.map((x:any) => CamelDefinitionApi.createRestDefinition(x)) :[];
|
2727
|
-
return def;
|
2728
|
-
}
|
2729
|
-
|
2730
|
-
static createSecurityDefinition = (element: any): SecurityDefinition => {
|
2731
|
-
const def = element ? new SecurityDefinition({...element}) : new SecurityDefinition();
|
2732
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2733
|
-
return def;
|
2734
|
-
}
|
2735
|
-
|
2736
|
-
static createLangChain4jTokenizerDefinition = (element: any): LangChain4jTokenizerDefinition => {
|
2737
|
-
const def = element ? new LangChain4jTokenizerDefinition({...element}) : new LangChain4jTokenizerDefinition();
|
2738
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2739
|
-
return def;
|
2740
|
-
}
|
2741
|
-
|
2742
|
-
static createCustomTransformerDefinition = (element: any): CustomTransformerDefinition => {
|
2743
|
-
const def = element ? new CustomTransformerDefinition({...element}) : new CustomTransformerDefinition();
|
2744
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2745
|
-
return def;
|
2746
|
-
}
|
2747
|
-
|
2748
|
-
static createDataFormatTransformerDefinition = (element: any): DataFormatTransformerDefinition => {
|
2749
|
-
const def = element ? new DataFormatTransformerDefinition({...element}) : new DataFormatTransformerDefinition();
|
2750
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2751
|
-
if (element?.asn1 !== undefined) {
|
2752
|
-
def.asn1 = CamelDefinitionApi.createASN1DataFormat(element.asn1);
|
2753
|
-
}
|
2754
|
-
if (element?.avro !== undefined) {
|
2755
|
-
def.avro = CamelDefinitionApi.createAvroDataFormat(element.avro);
|
2756
|
-
}
|
2757
|
-
if (element?.barcode !== undefined) {
|
2758
|
-
def.barcode = CamelDefinitionApi.createBarcodeDataFormat(element.barcode);
|
2759
|
-
}
|
2760
|
-
if (element?.base64 !== undefined) {
|
2761
|
-
def.base64 = CamelDefinitionApi.createBase64DataFormat(element.base64);
|
2762
|
-
}
|
2763
|
-
if (element?.beanio !== undefined) {
|
2764
|
-
def.beanio = CamelDefinitionApi.createBeanioDataFormat(element.beanio);
|
2765
|
-
}
|
2766
|
-
if (element?.bindy !== undefined) {
|
2767
|
-
def.bindy = CamelDefinitionApi.createBindyDataFormat(element.bindy);
|
2768
|
-
}
|
2769
|
-
if (element?.cbor !== undefined) {
|
2770
|
-
def.cbor = CamelDefinitionApi.createCBORDataFormat(element.cbor);
|
2771
|
-
}
|
2772
|
-
if (element?.crypto !== undefined) {
|
2773
|
-
def.crypto = CamelDefinitionApi.createCryptoDataFormat(element.crypto);
|
2774
|
-
}
|
2775
|
-
if (element?.csv !== undefined) {
|
2776
|
-
def.csv = CamelDefinitionApi.createCsvDataFormat(element.csv);
|
2777
|
-
}
|
2778
|
-
if (element?.custom !== undefined) {
|
2779
|
-
def.custom = CamelDefinitionApi.createCustomDataFormat(element.custom);
|
2780
|
-
}
|
2781
|
-
if (element?.fhirJson !== undefined) {
|
2782
|
-
def.fhirJson = CamelDefinitionApi.createFhirJsonDataFormat(element.fhirJson);
|
2783
|
-
}
|
2784
|
-
if (element?.fhirXml !== undefined) {
|
2785
|
-
def.fhirXml = CamelDefinitionApi.createFhirXmlDataFormat(element.fhirXml);
|
2786
|
-
}
|
2787
|
-
if (element?.flatpack !== undefined) {
|
2788
|
-
def.flatpack = CamelDefinitionApi.createFlatpackDataFormat(element.flatpack);
|
2789
|
-
}
|
2790
|
-
if (element?.grok !== undefined) {
|
2791
|
-
def.grok = CamelDefinitionApi.createGrokDataFormat(element.grok);
|
2792
|
-
}
|
2793
|
-
if (element?.gzipDeflater !== undefined) {
|
2794
|
-
def.gzipDeflater = CamelDefinitionApi.createGzipDeflaterDataFormat(element.gzipDeflater);
|
2795
|
-
}
|
2796
|
-
if (element?.hl7 !== undefined) {
|
2797
|
-
def.hl7 = CamelDefinitionApi.createHL7DataFormat(element.hl7);
|
2798
|
-
}
|
2799
|
-
if (element?.ical !== undefined) {
|
2800
|
-
def.ical = CamelDefinitionApi.createIcalDataFormat(element.ical);
|
2801
|
-
}
|
2802
|
-
if (element?.jacksonXml !== undefined) {
|
2803
|
-
def.jacksonXml = CamelDefinitionApi.createJacksonXMLDataFormat(element.jacksonXml);
|
2804
|
-
}
|
2805
|
-
if (element?.jaxb !== undefined) {
|
2806
|
-
def.jaxb = CamelDefinitionApi.createJaxbDataFormat(element.jaxb);
|
2807
|
-
}
|
2808
|
-
if (element?.json !== undefined) {
|
2809
|
-
def.json = CamelDefinitionApi.createJsonDataFormat(element.json);
|
2810
|
-
}
|
2811
|
-
if (element?.jsonApi !== undefined) {
|
2812
|
-
def.jsonApi = CamelDefinitionApi.createJsonApiDataFormat(element.jsonApi);
|
2813
|
-
}
|
2814
|
-
if (element?.lzf !== undefined) {
|
2815
|
-
def.lzf = CamelDefinitionApi.createLZFDataFormat(element.lzf);
|
2816
|
-
}
|
2817
|
-
if (element?.mimeMultipart !== undefined) {
|
2818
|
-
def.mimeMultipart = CamelDefinitionApi.createMimeMultipartDataFormat(element.mimeMultipart);
|
2819
|
-
}
|
2820
|
-
if (element?.parquetAvro !== undefined) {
|
2821
|
-
def.parquetAvro = CamelDefinitionApi.createParquetAvroDataFormat(element.parquetAvro);
|
2822
|
-
}
|
2823
|
-
if (element?.pgp !== undefined) {
|
2824
|
-
def.pgp = CamelDefinitionApi.createPGPDataFormat(element.pgp);
|
2825
|
-
}
|
2826
|
-
if (element?.protobuf !== undefined) {
|
2827
|
-
def.protobuf = CamelDefinitionApi.createProtobufDataFormat(element.protobuf);
|
2828
|
-
}
|
2829
|
-
if (element?.rss !== undefined) {
|
2830
|
-
def.rss = CamelDefinitionApi.createRssDataFormat(element.rss);
|
2831
|
-
}
|
2832
|
-
if (element?.soap !== undefined) {
|
2833
|
-
def.soap = CamelDefinitionApi.createSoapDataFormat(element.soap);
|
2834
|
-
}
|
2835
|
-
if (element?.swiftMt !== undefined) {
|
2836
|
-
def.swiftMt = CamelDefinitionApi.createSwiftMtDataFormat(element.swiftMt);
|
2837
|
-
}
|
2838
|
-
if (element?.swiftMx !== undefined) {
|
2839
|
-
def.swiftMx = CamelDefinitionApi.createSwiftMxDataFormat(element.swiftMx);
|
2840
|
-
}
|
2841
|
-
if (element?.syslog !== undefined) {
|
2842
|
-
def.syslog = CamelDefinitionApi.createSyslogDataFormat(element.syslog);
|
2843
|
-
}
|
2844
|
-
if (element?.tarFile !== undefined) {
|
2845
|
-
def.tarFile = CamelDefinitionApi.createTarFileDataFormat(element.tarFile);
|
2846
|
-
}
|
2847
|
-
if (element?.thrift !== undefined) {
|
2848
|
-
def.thrift = CamelDefinitionApi.createThriftDataFormat(element.thrift);
|
2849
|
-
}
|
2850
|
-
if (element?.tidyMarkup !== undefined) {
|
2851
|
-
def.tidyMarkup = CamelDefinitionApi.createTidyMarkupDataFormat(element.tidyMarkup);
|
2852
|
-
}
|
2853
|
-
if (element?.univocityCsv !== undefined) {
|
2854
|
-
def.univocityCsv = CamelDefinitionApi.createUniVocityCsvDataFormat(element.univocityCsv);
|
2855
|
-
}
|
2856
|
-
if (element?.univocityFixed !== undefined) {
|
2857
|
-
def.univocityFixed = CamelDefinitionApi.createUniVocityFixedDataFormat(element.univocityFixed);
|
2858
|
-
}
|
2859
|
-
if (element?.univocityTsv !== undefined) {
|
2860
|
-
def.univocityTsv = CamelDefinitionApi.createUniVocityTsvDataFormat(element.univocityTsv);
|
2861
|
-
}
|
2862
|
-
if (element?.xmlSecurity !== undefined) {
|
2863
|
-
def.xmlSecurity = CamelDefinitionApi.createXMLSecurityDataFormat(element.xmlSecurity);
|
2864
|
-
}
|
2865
|
-
if (element?.yaml !== undefined) {
|
2866
|
-
def.yaml = CamelDefinitionApi.createYAMLDataFormat(element.yaml);
|
2867
|
-
}
|
2868
|
-
if (element?.zipDeflater !== undefined) {
|
2869
|
-
def.zipDeflater = CamelDefinitionApi.createZipDeflaterDataFormat(element.zipDeflater);
|
2870
|
-
}
|
2871
|
-
if (element?.zipFile !== undefined) {
|
2872
|
-
def.zipFile = CamelDefinitionApi.createZipFileDataFormat(element.zipFile);
|
2873
|
-
}
|
2874
|
-
return def;
|
2875
|
-
}
|
2876
|
-
|
2877
|
-
static createEndpointTransformerDefinition = (element: any): EndpointTransformerDefinition => {
|
2878
|
-
const def = element ? new EndpointTransformerDefinition({...element}) : new EndpointTransformerDefinition();
|
2879
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2880
|
-
return def;
|
2881
|
-
}
|
2882
|
-
|
2883
|
-
static createLoadTransformerDefinition = (element: any): LoadTransformerDefinition => {
|
2884
|
-
const def = element ? new LoadTransformerDefinition({...element}) : new LoadTransformerDefinition();
|
2885
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2886
|
-
return def;
|
2887
|
-
}
|
2888
|
-
|
2889
|
-
static createTransformersDefinition = (element: any): TransformersDefinition => {
|
2890
|
-
const def = element ? new TransformersDefinition({...element}) : new TransformersDefinition();
|
2891
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2892
|
-
if (element?.customTransformer !== undefined) {
|
2893
|
-
def.customTransformer = CamelDefinitionApi.createCustomTransformerDefinition(element.customTransformer);
|
2894
|
-
}
|
2895
|
-
if (element?.dataFormatTransformer !== undefined) {
|
2896
|
-
def.dataFormatTransformer = CamelDefinitionApi.createDataFormatTransformerDefinition(element.dataFormatTransformer);
|
2897
|
-
}
|
2898
|
-
if (element?.endpointTransformer !== undefined) {
|
2899
|
-
def.endpointTransformer = CamelDefinitionApi.createEndpointTransformerDefinition(element.endpointTransformer);
|
2900
|
-
}
|
2901
|
-
if (element?.loadTransformer !== undefined) {
|
2902
|
-
def.loadTransformer = CamelDefinitionApi.createLoadTransformerDefinition(element.loadTransformer);
|
2903
|
-
}
|
2904
|
-
return def;
|
2905
|
-
}
|
2906
|
-
|
2907
|
-
static createCustomValidatorDefinition = (element: any): CustomValidatorDefinition => {
|
2908
|
-
const def = element ? new CustomValidatorDefinition({...element}) : new CustomValidatorDefinition();
|
2909
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2910
|
-
return def;
|
2911
|
-
}
|
2912
|
-
|
2913
|
-
static createEndpointValidatorDefinition = (element: any): EndpointValidatorDefinition => {
|
2914
|
-
const def = element ? new EndpointValidatorDefinition({...element}) : new EndpointValidatorDefinition();
|
2915
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2916
|
-
return def;
|
2917
|
-
}
|
2918
|
-
|
2919
|
-
static createPredicateValidatorDefinition = (element: any): PredicateValidatorDefinition => {
|
2920
|
-
const def = element ? new PredicateValidatorDefinition({...element}) : new PredicateValidatorDefinition();
|
2921
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2922
|
-
def.expression = CamelDefinitionApi.createExpressionDefinition(element.expression);
|
2923
|
-
|
2924
|
-
return def;
|
2925
|
-
}
|
2926
|
-
|
2927
|
-
static createValidatorsDefinition = (element: any): ValidatorsDefinition => {
|
2928
|
-
const def = element ? new ValidatorsDefinition({...element}) : new ValidatorsDefinition();
|
2929
|
-
def.uuid = element?.uuid ? element.uuid : def.uuid;
|
2930
|
-
if (element?.customValidator !== undefined) {
|
2931
|
-
def.customValidator = CamelDefinitionApi.createCustomValidatorDefinition(element.customValidator);
|
2932
|
-
}
|
2933
|
-
if (element?.endpointValidator !== undefined) {
|
2934
|
-
def.endpointValidator = CamelDefinitionApi.createEndpointValidatorDefinition(element.endpointValidator);
|
2935
|
-
}
|
2936
|
-
if (element?.predicateValidator !== undefined) {
|
2937
|
-
def.predicateValidator = CamelDefinitionApi.createPredicateValidatorDefinition(element.predicateValidator);
|
2938
|
-
}
|
2939
|
-
return def;
|
2940
|
-
}
|
2941
|
-
|
2942
|
-
static createStep = (name: string, body: any, clone: boolean = false): CamelElement => {
|
2943
|
-
const newBody = CamelUtil.camelizeBody(name, body, clone);
|
2944
|
-
switch (name) {
|
2945
|
-
case 'ProcessorDefinition': return CamelDefinitionApi.createProcessorDefinition(newBody);
|
2946
|
-
case 'BeansDeserializer': return CamelDefinitionApi.createBeansDeserializer(newBody);
|
2947
|
-
case 'ErrorHandlerDeserializer': return CamelDefinitionApi.createErrorHandlerDeserializer(newBody);
|
2948
|
-
case 'OutputAwareFromDefinition': return CamelDefinitionApi.createOutputAwareFromDefinition(newBody);
|
2949
|
-
case 'AggregateDefinition': return CamelDefinitionApi.createAggregateDefinition(newBody);
|
2950
|
-
case 'BeanDefinition': return CamelDefinitionApi.createBeanDefinition(newBody);
|
2951
|
-
case 'BeanFactoryDefinition': return CamelDefinitionApi.createBeanFactoryDefinition(newBody);
|
2952
|
-
case 'CatchDefinition': return CamelDefinitionApi.createCatchDefinition(newBody);
|
2953
|
-
case 'ChoiceDefinition': return CamelDefinitionApi.createChoiceDefinition(newBody);
|
2954
|
-
case 'CircuitBreakerDefinition': return CamelDefinitionApi.createCircuitBreakerDefinition(newBody);
|
2955
|
-
case 'ClaimCheckDefinition': return CamelDefinitionApi.createClaimCheckDefinition(newBody);
|
2956
|
-
case 'ContextScanDefinition': return CamelDefinitionApi.createContextScanDefinition(newBody);
|
2957
|
-
case 'ConvertBodyDefinition': return CamelDefinitionApi.createConvertBodyDefinition(newBody);
|
2958
|
-
case 'ConvertHeaderDefinition': return CamelDefinitionApi.createConvertHeaderDefinition(newBody);
|
2959
|
-
case 'ConvertVariableDefinition': return CamelDefinitionApi.createConvertVariableDefinition(newBody);
|
2960
|
-
case 'DataFormatDefinition': return CamelDefinitionApi.createDataFormatDefinition(newBody);
|
2961
|
-
case 'DelayDefinition': return CamelDefinitionApi.createDelayDefinition(newBody);
|
2962
|
-
case 'DynamicRouterDefinition': return CamelDefinitionApi.createDynamicRouterDefinition(newBody);
|
2963
|
-
case 'EnrichDefinition': return CamelDefinitionApi.createEnrichDefinition(newBody);
|
2964
|
-
case 'ErrorHandlerDefinition': return CamelDefinitionApi.createErrorHandlerDefinition(newBody);
|
2965
|
-
case 'ExpressionSubElementDefinition': return CamelDefinitionApi.createExpressionSubElementDefinition(newBody);
|
2966
|
-
case 'FaultToleranceConfigurationDefinition': return CamelDefinitionApi.createFaultToleranceConfigurationDefinition(newBody);
|
2967
|
-
case 'FilterDefinition': return CamelDefinitionApi.createFilterDefinition(newBody);
|
2968
|
-
case 'FinallyDefinition': return CamelDefinitionApi.createFinallyDefinition(newBody);
|
2969
|
-
case 'FromDefinition': return CamelDefinitionApi.createFromDefinition(newBody);
|
2970
|
-
case 'GlobalOptionDefinition': return CamelDefinitionApi.createGlobalOptionDefinition(newBody);
|
2971
|
-
case 'GlobalOptionsDefinition': return CamelDefinitionApi.createGlobalOptionsDefinition(newBody);
|
2972
|
-
case 'IdempotentConsumerDefinition': return CamelDefinitionApi.createIdempotentConsumerDefinition(newBody);
|
2973
|
-
case 'InputTypeDefinition': return CamelDefinitionApi.createInputTypeDefinition(newBody);
|
2974
|
-
case 'InterceptDefinition': return CamelDefinitionApi.createInterceptDefinition(newBody);
|
2975
|
-
case 'InterceptFromDefinition': return CamelDefinitionApi.createInterceptFromDefinition(newBody);
|
2976
|
-
case 'InterceptSendToEndpointDefinition': return CamelDefinitionApi.createInterceptSendToEndpointDefinition(newBody);
|
2977
|
-
case 'KameletDefinition': return CamelDefinitionApi.createKameletDefinition(newBody);
|
2978
|
-
case 'LoadBalanceDefinition': return CamelDefinitionApi.createLoadBalanceDefinition(newBody);
|
2979
|
-
case 'LogDefinition': return CamelDefinitionApi.createLogDefinition(newBody);
|
2980
|
-
case 'LoopDefinition': return CamelDefinitionApi.createLoopDefinition(newBody);
|
2981
|
-
case 'MarshalDefinition': return CamelDefinitionApi.createMarshalDefinition(newBody);
|
2982
|
-
case 'MulticastDefinition': return CamelDefinitionApi.createMulticastDefinition(newBody);
|
2983
|
-
case 'OnCompletionDefinition': return CamelDefinitionApi.createOnCompletionDefinition(newBody);
|
2984
|
-
case 'OnExceptionDefinition': return CamelDefinitionApi.createOnExceptionDefinition(newBody);
|
2985
|
-
case 'OnFallbackDefinition': return CamelDefinitionApi.createOnFallbackDefinition(newBody);
|
2986
|
-
case 'OptimisticLockRetryPolicyDefinition': return CamelDefinitionApi.createOptimisticLockRetryPolicyDefinition(newBody);
|
2987
|
-
case 'OtherwiseDefinition': return CamelDefinitionApi.createOtherwiseDefinition(newBody);
|
2988
|
-
case 'OutputDefinition': return CamelDefinitionApi.createOutputDefinition(newBody);
|
2989
|
-
case 'OutputTypeDefinition': return CamelDefinitionApi.createOutputTypeDefinition(newBody);
|
2990
|
-
case 'PackageScanDefinition': return CamelDefinitionApi.createPackageScanDefinition(newBody);
|
2991
|
-
case 'PausableDefinition': return CamelDefinitionApi.createPausableDefinition(newBody);
|
2992
|
-
case 'PipelineDefinition': return CamelDefinitionApi.createPipelineDefinition(newBody);
|
2993
|
-
case 'PolicyDefinition': return CamelDefinitionApi.createPolicyDefinition(newBody);
|
2994
|
-
case 'PollDefinition': return CamelDefinitionApi.createPollDefinition(newBody);
|
2995
|
-
case 'PollEnrichDefinition': return CamelDefinitionApi.createPollEnrichDefinition(newBody);
|
2996
|
-
case 'ProcessDefinition': return CamelDefinitionApi.createProcessDefinition(newBody);
|
2997
|
-
case 'PropertyDefinition': return CamelDefinitionApi.createPropertyDefinition(newBody);
|
2998
|
-
case 'PropertyExpressionDefinition': return CamelDefinitionApi.createPropertyExpressionDefinition(newBody);
|
2999
|
-
case 'RecipientListDefinition': return CamelDefinitionApi.createRecipientListDefinition(newBody);
|
3000
|
-
case 'RedeliveryPolicyDefinition': return CamelDefinitionApi.createRedeliveryPolicyDefinition(newBody);
|
3001
|
-
case 'RemoveHeaderDefinition': return CamelDefinitionApi.createRemoveHeaderDefinition(newBody);
|
3002
|
-
case 'RemoveHeadersDefinition': return CamelDefinitionApi.createRemoveHeadersDefinition(newBody);
|
3003
|
-
case 'RemovePropertiesDefinition': return CamelDefinitionApi.createRemovePropertiesDefinition(newBody);
|
3004
|
-
case 'RemovePropertyDefinition': return CamelDefinitionApi.createRemovePropertyDefinition(newBody);
|
3005
|
-
case 'RemoveVariableDefinition': return CamelDefinitionApi.createRemoveVariableDefinition(newBody);
|
3006
|
-
case 'ResequenceDefinition': return CamelDefinitionApi.createResequenceDefinition(newBody);
|
3007
|
-
case 'Resilience4jConfigurationDefinition': return CamelDefinitionApi.createResilience4jConfigurationDefinition(newBody);
|
3008
|
-
case 'RestContextRefDefinition': return CamelDefinitionApi.createRestContextRefDefinition(newBody);
|
3009
|
-
case 'ResumableDefinition': return CamelDefinitionApi.createResumableDefinition(newBody);
|
3010
|
-
case 'RollbackDefinition': return CamelDefinitionApi.createRollbackDefinition(newBody);
|
3011
|
-
case 'RouteBuilderDefinition': return CamelDefinitionApi.createRouteBuilderDefinition(newBody);
|
3012
|
-
case 'RouteConfigurationContextRefDefinition': return CamelDefinitionApi.createRouteConfigurationContextRefDefinition(newBody);
|
3013
|
-
case 'RouteConfigurationDefinition': return CamelDefinitionApi.createRouteConfigurationDefinition(newBody);
|
3014
|
-
case 'RouteContextRefDefinition': return CamelDefinitionApi.createRouteContextRefDefinition(newBody);
|
3015
|
-
case 'RouteDefinition': return CamelDefinitionApi.createRouteDefinition(newBody);
|
3016
|
-
case 'RouteTemplateDefinition': return CamelDefinitionApi.createRouteTemplateDefinition(newBody);
|
3017
|
-
case 'RouteTemplateParameterDefinition': return CamelDefinitionApi.createRouteTemplateParameterDefinition(newBody);
|
3018
|
-
case 'RoutingSlipDefinition': return CamelDefinitionApi.createRoutingSlipDefinition(newBody);
|
3019
|
-
case 'SagaActionUriDefinition': return CamelDefinitionApi.createSagaActionUriDefinition(newBody);
|
3020
|
-
case 'SagaDefinition': return CamelDefinitionApi.createSagaDefinition(newBody);
|
3021
|
-
case 'SamplingDefinition': return CamelDefinitionApi.createSamplingDefinition(newBody);
|
3022
|
-
case 'ScriptDefinition': return CamelDefinitionApi.createScriptDefinition(newBody);
|
3023
|
-
case 'SetBodyDefinition': return CamelDefinitionApi.createSetBodyDefinition(newBody);
|
3024
|
-
case 'SetExchangePatternDefinition': return CamelDefinitionApi.createSetExchangePatternDefinition(newBody);
|
3025
|
-
case 'SetHeaderDefinition': return CamelDefinitionApi.createSetHeaderDefinition(newBody);
|
3026
|
-
case 'SetHeadersDefinition': return CamelDefinitionApi.createSetHeadersDefinition(newBody);
|
3027
|
-
case 'SetPropertyDefinition': return CamelDefinitionApi.createSetPropertyDefinition(newBody);
|
3028
|
-
case 'SetVariableDefinition': return CamelDefinitionApi.createSetVariableDefinition(newBody);
|
3029
|
-
case 'SetVariablesDefinition': return CamelDefinitionApi.createSetVariablesDefinition(newBody);
|
3030
|
-
case 'SortDefinition': return CamelDefinitionApi.createSortDefinition(newBody);
|
3031
|
-
case 'SplitDefinition': return CamelDefinitionApi.createSplitDefinition(newBody);
|
3032
|
-
case 'StepDefinition': return CamelDefinitionApi.createStepDefinition(newBody);
|
3033
|
-
case 'StopDefinition': return CamelDefinitionApi.createStopDefinition(newBody);
|
3034
|
-
case 'TemplatedRouteDefinition': return CamelDefinitionApi.createTemplatedRouteDefinition(newBody);
|
3035
|
-
case 'TemplatedRouteParameterDefinition': return CamelDefinitionApi.createTemplatedRouteParameterDefinition(newBody);
|
3036
|
-
case 'ThreadPoolProfileDefinition': return CamelDefinitionApi.createThreadPoolProfileDefinition(newBody);
|
3037
|
-
case 'ThreadsDefinition': return CamelDefinitionApi.createThreadsDefinition(newBody);
|
3038
|
-
case 'ThrottleDefinition': return CamelDefinitionApi.createThrottleDefinition(newBody);
|
3039
|
-
case 'ThrowExceptionDefinition': return CamelDefinitionApi.createThrowExceptionDefinition(newBody);
|
3040
|
-
case 'ToDefinition': return CamelDefinitionApi.createToDefinition(newBody);
|
3041
|
-
case 'ToDynamicDefinition': return CamelDefinitionApi.createToDynamicDefinition(newBody);
|
3042
|
-
case 'TransactedDefinition': return CamelDefinitionApi.createTransactedDefinition(newBody);
|
3043
|
-
case 'TransformDefinition': return CamelDefinitionApi.createTransformDefinition(newBody);
|
3044
|
-
case 'TryDefinition': return CamelDefinitionApi.createTryDefinition(newBody);
|
3045
|
-
case 'UnmarshalDefinition': return CamelDefinitionApi.createUnmarshalDefinition(newBody);
|
3046
|
-
case 'ValidateDefinition': return CamelDefinitionApi.createValidateDefinition(newBody);
|
3047
|
-
case 'ValueDefinition': return CamelDefinitionApi.createValueDefinition(newBody);
|
3048
|
-
case 'WhenDefinition': return CamelDefinitionApi.createWhenDefinition(newBody);
|
3049
|
-
case 'WhenSkipSendToEndpointDefinition': return CamelDefinitionApi.createWhenSkipSendToEndpointDefinition(newBody);
|
3050
|
-
case 'WireTapDefinition': return CamelDefinitionApi.createWireTapDefinition(newBody);
|
3051
|
-
case 'BeanConstructorDefinition': return CamelDefinitionApi.createBeanConstructorDefinition(newBody);
|
3052
|
-
case 'BeanConstructorsDefinition': return CamelDefinitionApi.createBeanConstructorsDefinition(newBody);
|
3053
|
-
case 'BeanPropertiesDefinition': return CamelDefinitionApi.createBeanPropertiesDefinition(newBody);
|
3054
|
-
case 'BeanPropertyDefinition': return CamelDefinitionApi.createBeanPropertyDefinition(newBody);
|
3055
|
-
case 'ComponentScanDefinition': return CamelDefinitionApi.createComponentScanDefinition(newBody);
|
3056
|
-
case 'BatchResequencerConfig': return CamelDefinitionApi.createBatchResequencerConfig(newBody);
|
3057
|
-
case 'StreamResequencerConfig': return CamelDefinitionApi.createStreamResequencerConfig(newBody);
|
3058
|
-
case 'ASN1DataFormat': return CamelDefinitionApi.createASN1DataFormat(newBody);
|
3059
|
-
case 'AvroDataFormat': return CamelDefinitionApi.createAvroDataFormat(newBody);
|
3060
|
-
case 'BarcodeDataFormat': return CamelDefinitionApi.createBarcodeDataFormat(newBody);
|
3061
|
-
case 'Base64DataFormat': return CamelDefinitionApi.createBase64DataFormat(newBody);
|
3062
|
-
case 'BeanioDataFormat': return CamelDefinitionApi.createBeanioDataFormat(newBody);
|
3063
|
-
case 'BindyDataFormat': return CamelDefinitionApi.createBindyDataFormat(newBody);
|
3064
|
-
case 'CBORDataFormat': return CamelDefinitionApi.createCBORDataFormat(newBody);
|
3065
|
-
case 'CryptoDataFormat': return CamelDefinitionApi.createCryptoDataFormat(newBody);
|
3066
|
-
case 'CsvDataFormat': return CamelDefinitionApi.createCsvDataFormat(newBody);
|
3067
|
-
case 'CustomDataFormat': return CamelDefinitionApi.createCustomDataFormat(newBody);
|
3068
|
-
case 'DataFormatsDefinition': return CamelDefinitionApi.createDataFormatsDefinition(newBody);
|
3069
|
-
case 'FhirJsonDataFormat': return CamelDefinitionApi.createFhirJsonDataFormat(newBody);
|
3070
|
-
case 'FhirXmlDataFormat': return CamelDefinitionApi.createFhirXmlDataFormat(newBody);
|
3071
|
-
case 'FlatpackDataFormat': return CamelDefinitionApi.createFlatpackDataFormat(newBody);
|
3072
|
-
case 'GrokDataFormat': return CamelDefinitionApi.createGrokDataFormat(newBody);
|
3073
|
-
case 'GzipDeflaterDataFormat': return CamelDefinitionApi.createGzipDeflaterDataFormat(newBody);
|
3074
|
-
case 'HL7DataFormat': return CamelDefinitionApi.createHL7DataFormat(newBody);
|
3075
|
-
case 'IcalDataFormat': return CamelDefinitionApi.createIcalDataFormat(newBody);
|
3076
|
-
case 'JacksonXMLDataFormat': return CamelDefinitionApi.createJacksonXMLDataFormat(newBody);
|
3077
|
-
case 'JaxbDataFormat': return CamelDefinitionApi.createJaxbDataFormat(newBody);
|
3078
|
-
case 'JsonApiDataFormat': return CamelDefinitionApi.createJsonApiDataFormat(newBody);
|
3079
|
-
case 'JsonDataFormat': return CamelDefinitionApi.createJsonDataFormat(newBody);
|
3080
|
-
case 'LZFDataFormat': return CamelDefinitionApi.createLZFDataFormat(newBody);
|
3081
|
-
case 'MimeMultipartDataFormat': return CamelDefinitionApi.createMimeMultipartDataFormat(newBody);
|
3082
|
-
case 'PGPDataFormat': return CamelDefinitionApi.createPGPDataFormat(newBody);
|
3083
|
-
case 'ParquetAvroDataFormat': return CamelDefinitionApi.createParquetAvroDataFormat(newBody);
|
3084
|
-
case 'ProtobufDataFormat': return CamelDefinitionApi.createProtobufDataFormat(newBody);
|
3085
|
-
case 'RssDataFormat': return CamelDefinitionApi.createRssDataFormat(newBody);
|
3086
|
-
case 'SoapDataFormat': return CamelDefinitionApi.createSoapDataFormat(newBody);
|
3087
|
-
case 'SwiftMtDataFormat': return CamelDefinitionApi.createSwiftMtDataFormat(newBody);
|
3088
|
-
case 'SwiftMxDataFormat': return CamelDefinitionApi.createSwiftMxDataFormat(newBody);
|
3089
|
-
case 'SyslogDataFormat': return CamelDefinitionApi.createSyslogDataFormat(newBody);
|
3090
|
-
case 'TarFileDataFormat': return CamelDefinitionApi.createTarFileDataFormat(newBody);
|
3091
|
-
case 'ThriftDataFormat': return CamelDefinitionApi.createThriftDataFormat(newBody);
|
3092
|
-
case 'TidyMarkupDataFormat': return CamelDefinitionApi.createTidyMarkupDataFormat(newBody);
|
3093
|
-
case 'UniVocityCsvDataFormat': return CamelDefinitionApi.createUniVocityCsvDataFormat(newBody);
|
3094
|
-
case 'UniVocityFixedDataFormat': return CamelDefinitionApi.createUniVocityFixedDataFormat(newBody);
|
3095
|
-
case 'UniVocityHeader': return CamelDefinitionApi.createUniVocityHeader(newBody);
|
3096
|
-
case 'UniVocityTsvDataFormat': return CamelDefinitionApi.createUniVocityTsvDataFormat(newBody);
|
3097
|
-
case 'XMLSecurityDataFormat': return CamelDefinitionApi.createXMLSecurityDataFormat(newBody);
|
3098
|
-
case 'YAMLDataFormat': return CamelDefinitionApi.createYAMLDataFormat(newBody);
|
3099
|
-
case 'YAMLTypeFilterDefinition': return CamelDefinitionApi.createYAMLTypeFilterDefinition(newBody);
|
3100
|
-
case 'ZipDeflaterDataFormat': return CamelDefinitionApi.createZipDeflaterDataFormat(newBody);
|
3101
|
-
case 'ZipFileDataFormat': return CamelDefinitionApi.createZipFileDataFormat(newBody);
|
3102
|
-
case 'DeadLetterChannelDefinition': return CamelDefinitionApi.createDeadLetterChannelDefinition(newBody);
|
3103
|
-
case 'DefaultErrorHandlerDefinition': return CamelDefinitionApi.createDefaultErrorHandlerDefinition(newBody);
|
3104
|
-
case 'JtaTransactionErrorHandlerDefinition': return CamelDefinitionApi.createJtaTransactionErrorHandlerDefinition(newBody);
|
3105
|
-
case 'NoErrorHandlerDefinition': return CamelDefinitionApi.createNoErrorHandlerDefinition(newBody);
|
3106
|
-
case 'RefErrorHandlerDefinition': return CamelDefinitionApi.createRefErrorHandlerDefinition(newBody);
|
3107
|
-
case 'SpringTransactionErrorHandlerDefinition': return CamelDefinitionApi.createSpringTransactionErrorHandlerDefinition(newBody);
|
3108
|
-
case 'CSimpleExpression': return CamelDefinitionApi.createCSimpleExpression(newBody);
|
3109
|
-
case 'ConstantExpression': return CamelDefinitionApi.createConstantExpression(newBody);
|
3110
|
-
case 'DatasonnetExpression': return CamelDefinitionApi.createDatasonnetExpression(newBody);
|
3111
|
-
case 'ExchangePropertyExpression': return CamelDefinitionApi.createExchangePropertyExpression(newBody);
|
3112
|
-
case 'ExpressionDefinition': return CamelDefinitionApi.createExpressionDefinition(newBody);
|
3113
|
-
case 'GroovyExpression': return CamelDefinitionApi.createGroovyExpression(newBody);
|
3114
|
-
case 'HeaderExpression': return CamelDefinitionApi.createHeaderExpression(newBody);
|
3115
|
-
case 'Hl7TerserExpression': return CamelDefinitionApi.createHl7TerserExpression(newBody);
|
3116
|
-
case 'JavaExpression': return CamelDefinitionApi.createJavaExpression(newBody);
|
3117
|
-
case 'JavaScriptExpression': return CamelDefinitionApi.createJavaScriptExpression(newBody);
|
3118
|
-
case 'JqExpression': return CamelDefinitionApi.createJqExpression(newBody);
|
3119
|
-
case 'JsonPathExpression': return CamelDefinitionApi.createJsonPathExpression(newBody);
|
3120
|
-
case 'LanguageExpression': return CamelDefinitionApi.createLanguageExpression(newBody);
|
3121
|
-
case 'MethodCallExpression': return CamelDefinitionApi.createMethodCallExpression(newBody);
|
3122
|
-
case 'MvelExpression': return CamelDefinitionApi.createMvelExpression(newBody);
|
3123
|
-
case 'OgnlExpression': return CamelDefinitionApi.createOgnlExpression(newBody);
|
3124
|
-
case 'PythonExpression': return CamelDefinitionApi.createPythonExpression(newBody);
|
3125
|
-
case 'RefExpression': return CamelDefinitionApi.createRefExpression(newBody);
|
3126
|
-
case 'SimpleExpression': return CamelDefinitionApi.createSimpleExpression(newBody);
|
3127
|
-
case 'SpELExpression': return CamelDefinitionApi.createSpELExpression(newBody);
|
3128
|
-
case 'TokenizerExpression': return CamelDefinitionApi.createTokenizerExpression(newBody);
|
3129
|
-
case 'VariableExpression': return CamelDefinitionApi.createVariableExpression(newBody);
|
3130
|
-
case 'WasmExpression': return CamelDefinitionApi.createWasmExpression(newBody);
|
3131
|
-
case 'XMLTokenizerExpression': return CamelDefinitionApi.createXMLTokenizerExpression(newBody);
|
3132
|
-
case 'XPathExpression': return CamelDefinitionApi.createXPathExpression(newBody);
|
3133
|
-
case 'XQueryExpression': return CamelDefinitionApi.createXQueryExpression(newBody);
|
3134
|
-
case 'CustomLoadBalancerDefinition': return CamelDefinitionApi.createCustomLoadBalancerDefinition(newBody);
|
3135
|
-
case 'FailoverLoadBalancerDefinition': return CamelDefinitionApi.createFailoverLoadBalancerDefinition(newBody);
|
3136
|
-
case 'RandomLoadBalancerDefinition': return CamelDefinitionApi.createRandomLoadBalancerDefinition(newBody);
|
3137
|
-
case 'RoundRobinLoadBalancerDefinition': return CamelDefinitionApi.createRoundRobinLoadBalancerDefinition(newBody);
|
3138
|
-
case 'StickyLoadBalancerDefinition': return CamelDefinitionApi.createStickyLoadBalancerDefinition(newBody);
|
3139
|
-
case 'TopicLoadBalancerDefinition': return CamelDefinitionApi.createTopicLoadBalancerDefinition(newBody);
|
3140
|
-
case 'WeightedLoadBalancerDefinition': return CamelDefinitionApi.createWeightedLoadBalancerDefinition(newBody);
|
3141
|
-
case 'ApiKeyDefinition': return CamelDefinitionApi.createApiKeyDefinition(newBody);
|
3142
|
-
case 'BasicAuthDefinition': return CamelDefinitionApi.createBasicAuthDefinition(newBody);
|
3143
|
-
case 'BearerTokenDefinition': return CamelDefinitionApi.createBearerTokenDefinition(newBody);
|
3144
|
-
case 'DeleteDefinition': return CamelDefinitionApi.createDeleteDefinition(newBody);
|
3145
|
-
case 'GetDefinition': return CamelDefinitionApi.createGetDefinition(newBody);
|
3146
|
-
case 'HeadDefinition': return CamelDefinitionApi.createHeadDefinition(newBody);
|
3147
|
-
case 'MutualTLSDefinition': return CamelDefinitionApi.createMutualTLSDefinition(newBody);
|
3148
|
-
case 'OAuth2Definition': return CamelDefinitionApi.createOAuth2Definition(newBody);
|
3149
|
-
case 'OpenApiDefinition': return CamelDefinitionApi.createOpenApiDefinition(newBody);
|
3150
|
-
case 'OpenIdConnectDefinition': return CamelDefinitionApi.createOpenIdConnectDefinition(newBody);
|
3151
|
-
case 'ParamDefinition': return CamelDefinitionApi.createParamDefinition(newBody);
|
3152
|
-
case 'PatchDefinition': return CamelDefinitionApi.createPatchDefinition(newBody);
|
3153
|
-
case 'PostDefinition': return CamelDefinitionApi.createPostDefinition(newBody);
|
3154
|
-
case 'PutDefinition': return CamelDefinitionApi.createPutDefinition(newBody);
|
3155
|
-
case 'ResponseHeaderDefinition': return CamelDefinitionApi.createResponseHeaderDefinition(newBody);
|
3156
|
-
case 'ResponseMessageDefinition': return CamelDefinitionApi.createResponseMessageDefinition(newBody);
|
3157
|
-
case 'RestBindingDefinition': return CamelDefinitionApi.createRestBindingDefinition(newBody);
|
3158
|
-
case 'RestConfigurationDefinition': return CamelDefinitionApi.createRestConfigurationDefinition(newBody);
|
3159
|
-
case 'RestDefinition': return CamelDefinitionApi.createRestDefinition(newBody);
|
3160
|
-
case 'RestPropertyDefinition': return CamelDefinitionApi.createRestPropertyDefinition(newBody);
|
3161
|
-
case 'RestSecuritiesDefinition': return CamelDefinitionApi.createRestSecuritiesDefinition(newBody);
|
3162
|
-
case 'RestsDefinition': return CamelDefinitionApi.createRestsDefinition(newBody);
|
3163
|
-
case 'SecurityDefinition': return CamelDefinitionApi.createSecurityDefinition(newBody);
|
3164
|
-
case 'LangChain4jTokenizerDefinition': return CamelDefinitionApi.createLangChain4jTokenizerDefinition(newBody);
|
3165
|
-
case 'CustomTransformerDefinition': return CamelDefinitionApi.createCustomTransformerDefinition(newBody);
|
3166
|
-
case 'DataFormatTransformerDefinition': return CamelDefinitionApi.createDataFormatTransformerDefinition(newBody);
|
3167
|
-
case 'EndpointTransformerDefinition': return CamelDefinitionApi.createEndpointTransformerDefinition(newBody);
|
3168
|
-
case 'LoadTransformerDefinition': return CamelDefinitionApi.createLoadTransformerDefinition(newBody);
|
3169
|
-
case 'TransformersDefinition': return CamelDefinitionApi.createTransformersDefinition(newBody);
|
3170
|
-
case 'CustomValidatorDefinition': return CamelDefinitionApi.createCustomValidatorDefinition(newBody);
|
3171
|
-
case 'EndpointValidatorDefinition': return CamelDefinitionApi.createEndpointValidatorDefinition(newBody);
|
3172
|
-
case 'PredicateValidatorDefinition': return CamelDefinitionApi.createPredicateValidatorDefinition(newBody);
|
3173
|
-
case 'ValidatorsDefinition': return CamelDefinitionApi.createValidatorsDefinition(newBody);
|
3174
|
-
default: return new CamelElement('');
|
3175
|
-
}
|
3176
|
-
}
|
3177
|
-
|
3178
|
-
static createExpression = (name: string, body: any): CamelElement => {
|
3179
|
-
const newBody = CamelUtil.camelizeBody(name, body, false);
|
3180
|
-
delete newBody.expressionName;
|
3181
|
-
delete newBody.dslName;
|
3182
|
-
switch (name) {
|
3183
|
-
case 'ConstantExpression': return CamelDefinitionApi.createConstantExpression(newBody);
|
3184
|
-
case 'CSimpleExpression': return CamelDefinitionApi.createCSimpleExpression(newBody);
|
3185
|
-
case 'DatasonnetExpression': return CamelDefinitionApi.createDatasonnetExpression(newBody);
|
3186
|
-
case 'ExchangePropertyExpression': return CamelDefinitionApi.createExchangePropertyExpression(newBody);
|
3187
|
-
case 'GroovyExpression': return CamelDefinitionApi.createGroovyExpression(newBody);
|
3188
|
-
case 'HeaderExpression': return CamelDefinitionApi.createHeaderExpression(newBody);
|
3189
|
-
case 'Hl7TerserExpression': return CamelDefinitionApi.createHl7TerserExpression(newBody);
|
3190
|
-
case 'JavaExpression': return CamelDefinitionApi.createJavaExpression(newBody);
|
3191
|
-
case 'JqExpression': return CamelDefinitionApi.createJqExpression(newBody);
|
3192
|
-
case 'JavaScriptExpression': return CamelDefinitionApi.createJavaScriptExpression(newBody);
|
3193
|
-
case 'JsonPathExpression': return CamelDefinitionApi.createJsonPathExpression(newBody);
|
3194
|
-
case 'LanguageExpression': return CamelDefinitionApi.createLanguageExpression(newBody);
|
3195
|
-
case 'MethodCallExpression': return CamelDefinitionApi.createMethodCallExpression(newBody);
|
3196
|
-
case 'MvelExpression': return CamelDefinitionApi.createMvelExpression(newBody);
|
3197
|
-
case 'OgnlExpression': return CamelDefinitionApi.createOgnlExpression(newBody);
|
3198
|
-
case 'PythonExpression': return CamelDefinitionApi.createPythonExpression(newBody);
|
3199
|
-
case 'RefExpression': return CamelDefinitionApi.createRefExpression(newBody);
|
3200
|
-
case 'SimpleExpression': return CamelDefinitionApi.createSimpleExpression(newBody);
|
3201
|
-
case 'SpELExpression': return CamelDefinitionApi.createSpELExpression(newBody);
|
3202
|
-
case 'TokenizerExpression': return CamelDefinitionApi.createTokenizerExpression(newBody);
|
3203
|
-
case 'VariableExpression': return CamelDefinitionApi.createVariableExpression(newBody);
|
3204
|
-
case 'WasmExpression': return CamelDefinitionApi.createWasmExpression(newBody);
|
3205
|
-
case 'XPathExpression': return CamelDefinitionApi.createXPathExpression(newBody);
|
3206
|
-
case 'XQueryExpression': return CamelDefinitionApi.createXQueryExpression(newBody);
|
3207
|
-
case 'XMLTokenizerExpression': return CamelDefinitionApi.createXMLTokenizerExpression(newBody);
|
3208
|
-
default: return new GroovyExpression(newBody);
|
3209
|
-
}
|
3210
|
-
}
|
3211
|
-
|
3212
|
-
static createDataFormat = (name: string, body: any): CamelElement => {
|
3213
|
-
const newBody = CamelUtil.camelizeBody(name, body, false);
|
3214
|
-
delete newBody.dataFormatName;
|
3215
|
-
delete newBody.dslName;
|
3216
|
-
switch (name) {
|
3217
|
-
case 'ASN1DataFormat': return CamelDefinitionApi.createASN1DataFormat(newBody);
|
3218
|
-
case 'AvroDataFormat': return CamelDefinitionApi.createAvroDataFormat(newBody);
|
3219
|
-
case 'BarcodeDataFormat': return CamelDefinitionApi.createBarcodeDataFormat(newBody);
|
3220
|
-
case 'Base64DataFormat': return CamelDefinitionApi.createBase64DataFormat(newBody);
|
3221
|
-
case 'BeanioDataFormat': return CamelDefinitionApi.createBeanioDataFormat(newBody);
|
3222
|
-
case 'BindyDataFormat': return CamelDefinitionApi.createBindyDataFormat(newBody);
|
3223
|
-
case 'CBORDataFormat': return CamelDefinitionApi.createCBORDataFormat(newBody);
|
3224
|
-
case 'CryptoDataFormat': return CamelDefinitionApi.createCryptoDataFormat(newBody);
|
3225
|
-
case 'CsvDataFormat': return CamelDefinitionApi.createCsvDataFormat(newBody);
|
3226
|
-
case 'CustomDataFormat': return CamelDefinitionApi.createCustomDataFormat(newBody);
|
3227
|
-
case 'FhirJsonDataFormat': return CamelDefinitionApi.createFhirJsonDataFormat(newBody);
|
3228
|
-
case 'FhirXmlDataFormat': return CamelDefinitionApi.createFhirXmlDataFormat(newBody);
|
3229
|
-
case 'FlatpackDataFormat': return CamelDefinitionApi.createFlatpackDataFormat(newBody);
|
3230
|
-
case 'GrokDataFormat': return CamelDefinitionApi.createGrokDataFormat(newBody);
|
3231
|
-
case 'GzipDeflaterDataFormat': return CamelDefinitionApi.createGzipDeflaterDataFormat(newBody);
|
3232
|
-
case 'HL7DataFormat': return CamelDefinitionApi.createHL7DataFormat(newBody);
|
3233
|
-
case 'IcalDataFormat': return CamelDefinitionApi.createIcalDataFormat(newBody);
|
3234
|
-
case 'JacksonXMLDataFormat': return CamelDefinitionApi.createJacksonXMLDataFormat(newBody);
|
3235
|
-
case 'JaxbDataFormat': return CamelDefinitionApi.createJaxbDataFormat(newBody);
|
3236
|
-
case 'JsonDataFormat': return CamelDefinitionApi.createJsonDataFormat(newBody);
|
3237
|
-
case 'JsonApiDataFormat': return CamelDefinitionApi.createJsonApiDataFormat(newBody);
|
3238
|
-
case 'LZFDataFormat': return CamelDefinitionApi.createLZFDataFormat(newBody);
|
3239
|
-
case 'MimeMultipartDataFormat': return CamelDefinitionApi.createMimeMultipartDataFormat(newBody);
|
3240
|
-
case 'ParquetAvroDataFormat': return CamelDefinitionApi.createParquetAvroDataFormat(newBody);
|
3241
|
-
case 'PGPDataFormat': return CamelDefinitionApi.createPGPDataFormat(newBody);
|
3242
|
-
case 'ProtobufDataFormat': return CamelDefinitionApi.createProtobufDataFormat(newBody);
|
3243
|
-
case 'RssDataFormat': return CamelDefinitionApi.createRssDataFormat(newBody);
|
3244
|
-
case 'SoapDataFormat': return CamelDefinitionApi.createSoapDataFormat(newBody);
|
3245
|
-
case 'SwiftMtDataFormat': return CamelDefinitionApi.createSwiftMtDataFormat(newBody);
|
3246
|
-
case 'SwiftMxDataFormat': return CamelDefinitionApi.createSwiftMxDataFormat(newBody);
|
3247
|
-
case 'SyslogDataFormat': return CamelDefinitionApi.createSyslogDataFormat(newBody);
|
3248
|
-
case 'TarFileDataFormat': return CamelDefinitionApi.createTarFileDataFormat(newBody);
|
3249
|
-
case 'ThriftDataFormat': return CamelDefinitionApi.createThriftDataFormat(newBody);
|
3250
|
-
case 'TidyMarkupDataFormat': return CamelDefinitionApi.createTidyMarkupDataFormat(newBody);
|
3251
|
-
case 'UniVocityCsvDataFormat': return CamelDefinitionApi.createUniVocityCsvDataFormat(newBody);
|
3252
|
-
case 'UniVocityFixedDataFormat': return CamelDefinitionApi.createUniVocityFixedDataFormat(newBody);
|
3253
|
-
case 'UniVocityTsvDataFormat': return CamelDefinitionApi.createUniVocityTsvDataFormat(newBody);
|
3254
|
-
case 'XMLSecurityDataFormat': return CamelDefinitionApi.createXMLSecurityDataFormat(newBody);
|
3255
|
-
case 'YAMLDataFormat': return CamelDefinitionApi.createYAMLDataFormat(newBody);
|
3256
|
-
case 'ZipDeflaterDataFormat': return CamelDefinitionApi.createZipDeflaterDataFormat(newBody);
|
3257
|
-
case 'ZipFileDataFormat': return CamelDefinitionApi.createZipFileDataFormat(newBody);
|
3258
|
-
default: return new JsonDataFormat(newBody);
|
3259
|
-
}
|
3260
|
-
}
|
3261
|
-
|
3262
|
-
static createSteps = (elements: any[] | undefined): CamelElement[] => {
|
3263
|
-
const result: CamelElement[] = []
|
3264
|
-
if (elements !== undefined){
|
3265
|
-
elements.forEach(e => {
|
3266
|
-
result.push(CamelDefinitionApi.createStep(e.dslName, e));
|
3267
|
-
})
|
3268
|
-
}
|
3269
|
-
return result
|
3270
|
-
}
|
3271
|
-
}
|