You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/etl/ETL.md
+24-48Lines changed: 24 additions & 48 deletions
Original file line number
Diff line number
Diff line change
@@ -146,9 +146,8 @@ For the filters that have a parameter or options, they are given a subsection be
146
146
147
147
<hr/>
148
148
149
-
<aname="filter_detail_append">
149
+
<aname="filter_detail_append"></a>
150
150
##### Filter: `append`
151
-
</a>
152
151
153
152
Appends two lists together to form a new list.
154
153
@@ -175,9 +174,8 @@ This filter has the following parameters:
175
174
176
175
<hr/>
177
176
178
-
<aname="filter_detail_capitalize">
177
+
<aname="filter_detail_capitalize"></a>
179
178
##### Filter: `capitalize`
180
-
</a>
181
179
182
180
Capitalizes the input string - that is, it forces the first character to be uppercase.
183
181
@@ -189,9 +187,8 @@ Valid inputs for this filter are:
189
187
190
188
<hr/>
191
189
192
-
<aname="filter_detail_dashes">
190
+
<aname="filter_detail_dashes"></a>
193
191
##### Filter: `dashes`
194
-
</a>
195
192
196
193
Converts a string using the camel case to represent words to a string that uses the dash character as a separator between words. For instance, the string "EntityCompiler" would convert to "Entity-Compiler". This is often followed with the "lowercase" when used tocreate part of a URL path.
197
194
@@ -203,9 +200,8 @@ Valid inputs for this filter are:
203
200
204
201
<hr/>
205
202
206
-
<aname="filter_detail_domain">
203
+
<aname="filter_detail_domain"></a>
207
204
##### Filter: `domain`
208
-
</a>
209
205
210
206
Allows you to convert a model element (such as an entity or attribute) into a domain-specific version of that element. The domain-specific element can have altered properties such as a different name or different tags. For convenience this filter can also accept domain specific elements in which case it effectively replaces the domain with the specified one.
211
207
@@ -238,9 +234,8 @@ This filter has the following parameters:
238
234
239
235
<hr/>
240
236
241
-
<aname="filter_detail_fullname">
237
+
<aname="filter_detail_fullname"></a>
242
238
##### Filter: `fullname`
243
-
</a>
244
239
245
240
When the input is an domain-based entity, it will combine the namespace of the domain with the name of the entity in that domain to form a period based full name (e.g., `com.example.model.Widget`). This can be useful for construction a Java import statement, for instance.
246
241
@@ -258,9 +253,8 @@ This filter has the following parameters:
258
253
259
254
<hr/>
260
255
261
-
<aname="filter_detail_has">
256
+
<aname="filter_detail_has"></a>
262
257
##### Filter: `has`
263
-
</a>
264
258
265
259
deprecated
266
260
@@ -282,9 +276,8 @@ The following options are available:
282
276
283
277
<hr/>
284
278
285
-
<aname="filter_detail_join">
279
+
<aname="filter_detail_join"></a>
286
280
##### Filter: `join`
287
-
</a>
288
281
289
282
Given a multiline string, it joins all lines into one (replacing all carriage returns with a space).
290
283
@@ -296,9 +289,8 @@ Valid inputs for this filter are:
296
289
297
290
<hr/>
298
291
299
-
<aname="filter_detail_json">
292
+
<aname="filter_detail_json"></a>
300
293
##### Filter: `json`
301
-
</a>
302
294
303
295
This is used on an entity object that you want to convert into a JSON string. For attribute values it will randomly generate based on their type. This is currently only used when generating Postman configuration files to provide a sample POST body.
304
296
@@ -320,9 +312,8 @@ The following options are available:
320
312
321
313
<hr/>
322
314
323
-
<aname="filter_detail_language">
315
+
<aname="filter_detail_language"></a>
324
316
##### Filter: `language`
325
-
</a>
326
317
327
318
Using this filter allows the template to remain agnostic to the syntax of the language for which they are generating code. For instance, if you feed in a type object, it will use the language assigned to the template and look up the keyword for the type in that language. For instance, if the type is `string` and the language is `java`, it would output `String`.
328
319
@@ -352,9 +343,8 @@ The following options are available:
352
343
353
344
<hr/>
354
345
355
-
<aname="filter_detail_lowercase">
346
+
<aname="filter_detail_lowercase"></a>
356
347
##### Filter: `lowercase`
357
-
</a>
358
348
359
349
Forces all characters of the input to be lowercase.
360
350
@@ -366,9 +356,8 @@ Valid inputs for this filter are:
366
356
367
357
<hr/>
368
358
369
-
<aname="filter_detail_map">
359
+
<aname="filter_detail_map"></a>
370
360
##### Filter: `map`
371
-
</a>
372
361
373
362
This filter is probably the most complicated one but can be very powerful in helping to pattern match an expression at its input with one provided as a parameter. When the expressions match, it not only returns true but also maps operands from the input expression to the parameter expression.
374
363
@@ -386,9 +375,8 @@ This filter has the following parameters:
386
375
387
376
<hr/>
388
377
389
-
<aname="filter_detail_name">
378
+
<aname="filter_detail_name"></a>
390
379
##### Filter: `name`
391
-
</a>
392
380
393
381
This simply calls `getName()` on the input. It is more of a convenient way to get the name by using a filter.
394
382
@@ -400,9 +388,8 @@ Valid inputs for this filter are:
400
388
401
389
<hr/>
402
390
403
-
<aname="filter_detail_path">
391
+
<aname="filter_detail_path"></a>
404
392
##### Filter: `path`
405
-
</a>
406
393
407
394
This will convert a string or namespace object into a string where by a '/' character is used as a delimiter instead of a '.'. This is useful when you need to convert a namespace into a filepath.
408
395
@@ -415,9 +402,8 @@ Valid inputs for this filter are:
415
402
416
403
<hr/>
417
404
418
-
<aname="filter_detail_plural">
405
+
<aname="filter_detail_plural"></a>
419
406
##### Filter: `plural`
420
-
</a>
421
407
422
408
This will attempt to pluralize the last word of the input string. If it can't determine the pluralization it may just return the same string.
423
409
@@ -429,9 +415,8 @@ Valid inputs for this filter are:
429
415
430
416
<hr/>
431
417
432
-
<aname="filter_detail_reverse">
418
+
<aname="filter_detail_reverse"></a>
433
419
##### Filter: `reverse`
434
-
</a>
435
420
436
421
Given a collection of objects, this will return a collection that has the reverse order of the input.
437
422
@@ -452,9 +437,8 @@ Valid inputs for this filter are:
452
437
453
438
<hr/>
454
439
455
-
<aname="filter_detail_sort">
440
+
<aname="filter_detail_sort"></a>
456
441
##### Filter: `sort`
457
-
</a>
458
442
459
443
Given a collection of objects, this will return a collection that is sorted by name. This is useful when generating code that is consistent each time in terms of the order of objects in the output.
460
444
@@ -477,9 +461,8 @@ Valid inputs for this filter are:
477
461
478
462
<hr/>
479
463
480
-
<aname="filter_detail_title">
464
+
<aname="filter_detail_title"></a>
481
465
##### Filter: `title`
482
-
</a>
483
466
484
467
Given a string of words in camel case format, this will capitalize each word in the string except those words that are typically not capitalized in a title (such as 'of', 'the'. 'and', etc.).
485
468
@@ -492,9 +475,8 @@ Valid inputs for this filter are:
492
475
493
476
<hr/>
494
477
495
-
<aname="filter_detail_trim">
478
+
<aname="filter_detail_trim"></a>
496
479
##### Filter: `trim`
497
-
</a>
498
480
499
481
Removes white space from both ends of the input string.
500
482
@@ -506,9 +488,8 @@ Valid inputs for this filter are:
506
488
507
489
<hr/>
508
490
509
-
<aname="filter_detail_type">
491
+
<aname="filter_detail_type"></a>
510
492
##### Filter: `type`
511
-
</a>
512
493
513
494
Filters attribute lists optionally by its type (only array/single type supported currently).
514
495
@@ -529,9 +510,8 @@ The following options are available:
529
510
530
511
<hr/>
531
512
532
-
<aname="filter_detail_uncapitalize">
513
+
<aname="filter_detail_uncapitalize"></a>
533
514
##### Filter: `uncapitalize`
534
-
</a>
535
515
536
516
Uncapitalizes the input string - that is, it forces the first character to be lowercase.
537
517
@@ -543,9 +523,8 @@ Valid inputs for this filter are:
543
523
544
524
<hr/>
545
525
546
-
<aname="filter_detail_uppercase">
526
+
<aname="filter_detail_uppercase"></a>
547
527
##### Filter: `uppercase`
548
-
</a>
549
528
550
529
Forces all characters of the input to be uppercase.
551
530
@@ -557,9 +536,8 @@ Valid inputs for this filter are:
557
536
558
537
<hr/>
559
538
560
-
<aname="filter_detail_view">
539
+
<aname="filter_detail_view"></a>
561
540
##### Filter: `view`
562
-
</a>
563
541
564
542
Given a domain entity and the name of a view, this will return the view object.
565
543
@@ -577,9 +555,8 @@ This filter has the following parameters:
577
555
578
556
<hr/>
579
557
580
-
<aname="filter_detail_words">
558
+
<aname="filter_detail_words"></a>
581
559
##### Filter: `words`
582
-
</a>
583
560
584
561
Given a string of words in camel case format, this will simply break up the words using a space character as a delimiter and does not change upper or lower case.
585
562
@@ -591,9 +568,8 @@ Valid inputs for this filter are:
591
568
592
569
<hr/>
593
570
594
-
<aname="filter_detail_wrap">
571
+
<aname="filter_detail_wrap"></a>
595
572
##### Filter: `wrap`
596
-
</a>
597
573
598
574
Given a sentence or paragraph string and an optional line width, this will perform a word wrap of the string to the output. You can optionally provide a line prefix (such as a line comment designator). The column position of the first line is used as the starting column position of each wrapped line of text.
0 commit comments