• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

common-workflow-language / cwljava / #365

15 Jul 2025 10:44AM UTC coverage: 59.538% (-0.6%) from 60.167%
#365

Pull #193

github

web-flow
Merge dddcd65fe into f35b0bad8
Pull Request #193: Add accessor for the extension field.

0 of 129 new or added lines in 129 files covered. (0.0%)

7347 of 12340 relevant lines covered (59.54%)

0.6 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

60.78
/src/main/java/org/w3id/cwl/cwl1_1/CommandLineToolImpl.java
1
// Copyright Common Workflow Language project contributors
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
//      http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14

15
package org.w3id.cwl.cwl1_1;
16

17
import org.w3id.cwl.cwl1_1.utils.LoaderInstances;
18
import org.w3id.cwl.cwl1_1.utils.LoadingOptions;
19
import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder;
20
import org.w3id.cwl.cwl1_1.utils.SaveableImpl;
21
import org.w3id.cwl.cwl1_1.utils.ValidationException;
22

23
/**
24
* Auto-generated class implementation for <I>https://w3id.org/cwl/cwl#CommandLineTool</I><BR> <BLOCKQUOTE>
25
 This defines the schema of the CWL Command Line Tool Description document.
26
  </BLOCKQUOTE>
27
 */
28
public class CommandLineToolImpl extends SaveableImpl implements CommandLineTool {
29
  private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build();
1✔
30
  private java.util.Map<String, Object> extensionFields_ =
1✔
31
      new java.util.HashMap<String, Object>();
32
  public java.util.Map<String, Object> getExtensionFields() {
NEW
33
    return this.extensionFields_;
×
34
  }
35

36
  private java.util.Optional<String> id;
37

38
  /**
39
   * Getter for property <I>https://w3id.org/cwl/cwl#Identified/id</I><BR>
40
   * <BLOCKQUOTE>
41
   * The unique identifier for this object.   * </BLOCKQUOTE>
42
   */
43

44
  public java.util.Optional<String> getId() {
45
    return this.id;
×
46
  }
47

48
  private CommandLineTool_class class_;
49

50
  /**
51
   * Getter for property <I>https://w3id.org/cwl/cwl#CommandLineTool/class</I><BR>
52

53
   */
54

55
  public CommandLineTool_class getClass_() {
56
    return this.class_;
×
57
  }
58

59
  private java.util.Optional<String> label;
60

61
  /**
62
   * Getter for property <I>https://w3id.org/cwl/cwl#Labeled/label</I><BR>
63
   * <BLOCKQUOTE>
64
   * A short, human-readable label of this object.   * </BLOCKQUOTE>
65
   */
66

67
  public java.util.Optional<String> getLabel() {
68
    return this.label;
×
69
  }
70

71
  private Object doc;
72

73
  /**
74
   * Getter for property <I>https://w3id.org/cwl/salad#Documented/doc</I><BR>
75
   * <BLOCKQUOTE>
76
   * A documentation string for this object, or an array of strings which should be concatenated.   * </BLOCKQUOTE>
77
   */
78

79
  public Object getDoc() {
80
    return this.doc;
×
81
  }
82

83
  private java.util.List<Object> inputs;
84

85
  /**
86
   * Getter for property <I>https://w3id.org/cwl/cwl#inputs</I><BR>
87
   * <BLOCKQUOTE>
88
   * Defines the input parameters of the process.  The process is ready to
89
   * run when all required input parameters are associated with concrete
90
   * values.  Input parameters include a schema for each parameter which is
91
   * used to validate the input object.  It may also be used to build a user
92
   * interface for constructing the input object.
93
   * 
94
   * When accepting an input object, all input parameters must have a value.
95
   * If an input parameter is missing from the input object, it must be
96
   * assigned a value of `null` (or the value of `default` for that
97
   * parameter, if provided) for the purposes of validation and evaluation
98
   * of expressions.
99
   *    * </BLOCKQUOTE>
100
   */
101

102
  public java.util.List<Object> getInputs() {
103
    return this.inputs;
×
104
  }
105

106
  private java.util.List<Object> outputs;
107

108
  /**
109
   * Getter for property <I>https://w3id.org/cwl/cwl#outputs</I><BR>
110
   * <BLOCKQUOTE>
111
   * Defines the parameters representing the output of the process.  May be
112
   * used to generate and/or validate the output object.
113
   *    * </BLOCKQUOTE>
114
   */
115

116
  public java.util.List<Object> getOutputs() {
117
    return this.outputs;
×
118
  }
119

120
  private java.util.Optional<java.util.List<Object>> requirements;
121

122
  /**
123
   * Getter for property <I>https://w3id.org/cwl/cwl#requirements</I><BR>
124
   * <BLOCKQUOTE>
125
   * Declares requirements that apply to either the runtime environment or the
126
   * workflow engine that must be met in order to execute this process.  If
127
   * an implementation cannot satisfy all requirements, or a requirement is
128
   * listed which is not recognized by the implementation, it is a fatal
129
   * error and the implementation must not attempt to run the process,
130
   * unless overridden at user option.
131
   *    * </BLOCKQUOTE>
132
   */
133

134
  public java.util.Optional<java.util.List<Object>> getRequirements() {
135
    return this.requirements;
1✔
136
  }
137

138
  private java.util.Optional<java.util.List<Object>> hints;
139

140
  /**
141
   * Getter for property <I>https://w3id.org/cwl/cwl#hints</I><BR>
142
   * <BLOCKQUOTE>
143
   * Declares hints applying to either the runtime environment or the
144
   * workflow engine that may be helpful in executing this process.  It is
145
   * not an error if an implementation cannot satisfy all hints, however
146
   * the implementation may report a warning.
147
   *    * </BLOCKQUOTE>
148
   */
149

150
  public java.util.Optional<java.util.List<Object>> getHints() {
151
    return this.hints;
1✔
152
  }
153

154
  private java.util.Optional<CWLVersion> cwlVersion;
155

156
  /**
157
   * Getter for property <I>https://w3id.org/cwl/cwl#cwlVersion</I><BR>
158
   * <BLOCKQUOTE>
159
   * CWL document version. Always required at the document root. Not
160
   * required for a Process embedded inside another Process.
161
   *    * </BLOCKQUOTE>
162
   */
163

164
  public java.util.Optional<CWLVersion> getCwlVersion() {
165
    return this.cwlVersion;
1✔
166
  }
167

168
  private Object baseCommand;
169

170
  /**
171
   * Getter for property <I>https://w3id.org/cwl/cwl#baseCommand</I><BR>
172
   * <BLOCKQUOTE>
173
   * Specifies the program to execute.  If an array, the first element of
174
   * the array is the command to execute, and subsequent elements are
175
   * mandatory command line arguments.  The elements in `baseCommand` must
176
   * appear before any command line bindings from `inputBinding` or
177
   * `arguments`.
178
   * 
179
   * If `baseCommand` is not provided or is an empty array, the first
180
   * element of the command line produced after processing `inputBinding` or
181
   * `arguments` must be used as the program to execute.
182
   * 
183
   * If the program includes a path separator character it must
184
   * be an absolute path, otherwise it is an error.  If the program does not
185
   * include a path separator, search the `$PATH` variable in the runtime
186
   * environment of the workflow runner find the absolute path of the
187
   * executable.
188
   *    * </BLOCKQUOTE>
189
   */
190

191
  public Object getBaseCommand() {
192
    return this.baseCommand;
×
193
  }
194

195
  private java.util.Optional<java.util.List<Object>> arguments;
196

197
  /**
198
   * Getter for property <I>https://w3id.org/cwl/cwl#arguments</I><BR>
199
   * <BLOCKQUOTE>
200
   * Command line bindings which are not directly associated with input
201
   * parameters. If the value is a string, it is used as a string literal
202
   * argument. If it is an Expression, the result of the evaluation is used
203
   * as an argument.
204
   *    * </BLOCKQUOTE>
205
   */
206

207
  public java.util.Optional<java.util.List<Object>> getArguments() {
208
    return this.arguments;
×
209
  }
210

211
  private Object stdin;
212

213
  /**
214
   * Getter for property <I>https://w3id.org/cwl/cwl#CommandLineTool/stdin</I><BR>
215
   * <BLOCKQUOTE>
216
   * A path to a file whose contents must be piped into the command's
217
   * standard input stream.
218
   *    * </BLOCKQUOTE>
219
   */
220

221
  public Object getStdin() {
222
    return this.stdin;
×
223
  }
224

225
  private Object stderr;
226

227
  /**
228
   * Getter for property <I>https://w3id.org/cwl/cwl#CommandLineTool/stderr</I><BR>
229
   * <BLOCKQUOTE>
230
   * Capture the command's standard error stream to a file written to
231
   * the designated output directory.
232
   * 
233
   * If `stderr` is a string, it specifies the file name to use.
234
   * 
235
   * If `stderr` is an expression, the expression is evaluated and must
236
   * return a string with the file name to use to capture stderr.  If the
237
   * return value is not a string, or the resulting path contains illegal
238
   * characters (such as the path separator `/`) it is an error.
239
   *    * </BLOCKQUOTE>
240
   */
241

242
  public Object getStderr() {
243
    return this.stderr;
×
244
  }
245

246
  private Object stdout;
247

248
  /**
249
   * Getter for property <I>https://w3id.org/cwl/cwl#CommandLineTool/stdout</I><BR>
250
   * <BLOCKQUOTE>
251
   * Capture the command's standard output stream to a file written to
252
   * the designated output directory.
253
   * 
254
   * If `stdout` is a string, it specifies the file name to use.
255
   * 
256
   * If `stdout` is an expression, the expression is evaluated and must
257
   * return a string with the file name to use to capture stdout.  If the
258
   * return value is not a string, or the resulting path contains illegal
259
   * characters (such as the path separator `/`) it is an error.
260
   *    * </BLOCKQUOTE>
261
   */
262

263
  public Object getStdout() {
264
    return this.stdout;
×
265
  }
266

267
  private java.util.Optional<java.util.List<Object>> successCodes;
268

269
  /**
270
   * Getter for property <I>https://w3id.org/cwl/cwl#CommandLineTool/successCodes</I><BR>
271
   * <BLOCKQUOTE>
272
   * Exit codes that indicate the process completed successfully.
273
   *    * </BLOCKQUOTE>
274
   */
275

276
  public java.util.Optional<java.util.List<Object>> getSuccessCodes() {
277
    return this.successCodes;
×
278
  }
279

280
  private java.util.Optional<java.util.List<Object>> temporaryFailCodes;
281

282
  /**
283
   * Getter for property <I>https://w3id.org/cwl/cwl#CommandLineTool/temporaryFailCodes</I><BR>
284
   * <BLOCKQUOTE>
285
   * Exit codes that indicate the process failed due to a possibly
286
   * temporary condition, where executing the process with the same
287
   * runtime environment and inputs may produce different results.
288
   *    * </BLOCKQUOTE>
289
   */
290

291
  public java.util.Optional<java.util.List<Object>> getTemporaryFailCodes() {
292
    return this.temporaryFailCodes;
×
293
  }
294

295
  private java.util.Optional<java.util.List<Object>> permanentFailCodes;
296

297
  /**
298
   * Getter for property <I>https://w3id.org/cwl/cwl#CommandLineTool/permanentFailCodes</I><BR>
299
   * <BLOCKQUOTE>
300
   * Exit codes that indicate the process failed due to a permanent logic error, where executing the process with the same runtime environment and same inputs is expected to always fail.   * </BLOCKQUOTE>
301
   */
302

303
  public java.util.Optional<java.util.List<Object>> getPermanentFailCodes() {
304
    return this.permanentFailCodes;
×
305
  }
306

307
  /**
308
   * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of CommandLineToolImpl.
309
   *
310
   * @param __doc_            Document fragment to load this record object from (presumably a
311
                              {@link java.util.Map}).
312
   * @param __baseUri_        Base URI to generate child document IDs against.
313
   * @param __loadingOptions  Context for loading URIs and populating objects.
314
   * @param __docRoot_        ID at this position in the document (if available) (maybe?)
315
   * @throws ValidationException If the document fragment is not a {@link java.util.Map}
316
   *                             or validation of fields fails.
317
   */
318
  public CommandLineToolImpl(
319
      final Object __doc_,
320
      final String __baseUri_,
321
      LoadingOptions __loadingOptions,
322
      final String __docRoot_) {
323
    super(__doc_, __baseUri_, __loadingOptions, __docRoot_);
1✔
324
    // Prefix plumbing variables with '__' to reduce likelihood of collision with
325
    // generated names.
326
    String __baseUri = __baseUri_;
1✔
327
    String __docRoot = __docRoot_;
1✔
328
    if (!(__doc_ instanceof java.util.Map)) {
1✔
329
      throw new ValidationException("CommandLineToolImpl called on non-map");
×
330
    }
331
    final java.util.Map<String, Object> __doc = (java.util.Map<String, Object>) __doc_;
1✔
332
    final java.util.List<ValidationException> __errors =
1✔
333
        new java.util.ArrayList<ValidationException>();
334
    if (__loadingOptions != null) {
1✔
335
      this.loadingOptions_ = __loadingOptions;
1✔
336
    }
337
    java.util.Optional<String> id;
338

339
    if (__doc.containsKey("id")) {
1✔
340
      try {
341
        id =
1✔
342
            LoaderInstances
343
                .uri_optional_StringInstance_True_False_None_None
344
                .loadField(__doc.get("id"), __baseUri, __loadingOptions);
1✔
345
      } catch (ValidationException e) {
×
346
        id = null; // won't be used but prevents compiler from complaining.
×
347
        final String __message = "the `id` field is not valid because:";
×
348
        __errors.add(new ValidationException(__message, e));
×
349
      }
1✔
350

351
    } else {
352
      id = null;
1✔
353
    }
354

355
    Boolean __original_is_null = id == null;
1✔
356
    if (id == null) {
1✔
357
      if (__docRoot != null) {
1✔
358
        id = java.util.Optional.of(__docRoot);
1✔
359
      } else {
360
        id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString());
1✔
361
      }
362
    }
363
    if (__original_is_null) {
1✔
364
        __baseUri = __baseUri_;
1✔
365
    } else {
366
        __baseUri = (String) id.orElse(null);
1✔
367
    }
368
    CommandLineTool_class class_;
369
    try {
370
      class_ =
1✔
371
          LoaderInstances
372
              .uri_CommandLineTool_class_False_True_None_None
373
              .loadField(__doc.get("class"), __baseUri, __loadingOptions);
1✔
374
    } catch (ValidationException e) {
1✔
375
      class_ = null; // won't be used but prevents compiler from complaining.
1✔
376
      final String __message = "the `class` field is not valid because:";
1✔
377
      __errors.add(new ValidationException(__message, e));
1✔
378
    }
1✔
379
    java.util.Optional<String> label;
380

381
    if (__doc.containsKey("label")) {
1✔
382
      try {
383
        label =
1✔
384
            LoaderInstances
385
                .optional_StringInstance
386
                .loadField(__doc.get("label"), __baseUri, __loadingOptions);
1✔
387
      } catch (ValidationException e) {
×
388
        label = null; // won't be used but prevents compiler from complaining.
×
389
        final String __message = "the `label` field is not valid because:";
×
390
        __errors.add(new ValidationException(__message, e));
×
391
      }
1✔
392

393
    } else {
394
      label = null;
1✔
395
    }
396
    Object doc;
397

398
    if (__doc.containsKey("doc")) {
1✔
399
      try {
400
        doc =
1✔
401
            LoaderInstances
402
                .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance
403
                .loadField(__doc.get("doc"), __baseUri, __loadingOptions);
1✔
404
      } catch (ValidationException e) {
×
405
        doc = null; // won't be used but prevents compiler from complaining.
×
406
        final String __message = "the `doc` field is not valid because:";
×
407
        __errors.add(new ValidationException(__message, e));
×
408
      }
1✔
409

410
    } else {
411
      doc = null;
1✔
412
    }
413
    java.util.List<Object> inputs;
414
    try {
415
      inputs =
1✔
416
          LoaderInstances
417
              .idmap_inputs_array_of_CommandInputParameter
418
              .loadField(__doc.get("inputs"), __baseUri, __loadingOptions);
1✔
419
    } catch (ValidationException e) {
×
420
      inputs = null; // won't be used but prevents compiler from complaining.
×
421
      final String __message = "the `inputs` field is not valid because:";
×
422
      __errors.add(new ValidationException(__message, e));
×
423
    }
1✔
424
    java.util.List<Object> outputs;
425
    try {
426
      outputs =
1✔
427
          LoaderInstances
428
              .idmap_outputs_array_of_CommandOutputParameter
429
              .loadField(__doc.get("outputs"), __baseUri, __loadingOptions);
1✔
430
    } catch (ValidationException e) {
×
431
      outputs = null; // won't be used but prevents compiler from complaining.
×
432
      final String __message = "the `outputs` field is not valid because:";
×
433
      __errors.add(new ValidationException(__message, e));
×
434
    }
1✔
435
    java.util.Optional<java.util.List<Object>> requirements;
436

437
    if (__doc.containsKey("requirements")) {
1✔
438
      try {
439
        requirements =
1✔
440
            LoaderInstances
441
                .idmap_requirements_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement
442
                .loadField(__doc.get("requirements"), __baseUri, __loadingOptions);
1✔
443
      } catch (ValidationException e) {
×
444
        requirements = null; // won't be used but prevents compiler from complaining.
×
445
        final String __message = "the `requirements` field is not valid because:";
×
446
        __errors.add(new ValidationException(__message, e));
×
447
      }
1✔
448

449
    } else {
450
      requirements = null;
1✔
451
    }
452
    java.util.Optional<java.util.List<Object>> hints;
453

454
    if (__doc.containsKey("hints")) {
1✔
455
      try {
456
        hints =
1✔
457
            LoaderInstances
458
                .idmap_hints_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance
459
                .loadField(__doc.get("hints"), __baseUri, __loadingOptions);
1✔
460
      } catch (ValidationException e) {
×
461
        hints = null; // won't be used but prevents compiler from complaining.
×
462
        final String __message = "the `hints` field is not valid because:";
×
463
        __errors.add(new ValidationException(__message, e));
×
464
      }
1✔
465

466
    } else {
467
      hints = null;
1✔
468
    }
469
    java.util.Optional<CWLVersion> cwlVersion;
470

471
    if (__doc.containsKey("cwlVersion")) {
1✔
472
      try {
473
        cwlVersion =
1✔
474
            LoaderInstances
475
                .uri_optional_CWLVersion_False_True_None_None
476
                .loadField(__doc.get("cwlVersion"), __baseUri, __loadingOptions);
1✔
477
      } catch (ValidationException e) {
×
478
        cwlVersion = null; // won't be used but prevents compiler from complaining.
×
479
        final String __message = "the `cwlVersion` field is not valid because:";
×
480
        __errors.add(new ValidationException(__message, e));
×
481
      }
1✔
482

483
    } else {
484
      cwlVersion = null;
1✔
485
    }
486
    Object baseCommand;
487

488
    if (__doc.containsKey("baseCommand")) {
1✔
489
      try {
490
        baseCommand =
1✔
491
            LoaderInstances
492
                .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance
493
                .loadField(__doc.get("baseCommand"), __baseUri, __loadingOptions);
1✔
494
      } catch (ValidationException e) {
×
495
        baseCommand = null; // won't be used but prevents compiler from complaining.
×
496
        final String __message = "the `baseCommand` field is not valid because:";
×
497
        __errors.add(new ValidationException(__message, e));
×
498
      }
1✔
499

500
    } else {
501
      baseCommand = null;
1✔
502
    }
503
    java.util.Optional<java.util.List<Object>> arguments;
504

505
    if (__doc.containsKey("arguments")) {
1✔
506
      try {
507
        arguments =
1✔
508
            LoaderInstances
509
                .optional_array_of_union_of_StringInstance_or_ExpressionLoader_or_CommandLineBinding
510
                .loadField(__doc.get("arguments"), __baseUri, __loadingOptions);
1✔
511
      } catch (ValidationException e) {
×
512
        arguments = null; // won't be used but prevents compiler from complaining.
×
513
        final String __message = "the `arguments` field is not valid because:";
×
514
        __errors.add(new ValidationException(__message, e));
×
515
      }
1✔
516

517
    } else {
518
      arguments = null;
1✔
519
    }
520
    Object stdin;
521

522
    if (__doc.containsKey("stdin")) {
1✔
523
      try {
524
        stdin =
1✔
525
            LoaderInstances
526
                .union_of_NullInstance_or_StringInstance_or_ExpressionLoader
527
                .loadField(__doc.get("stdin"), __baseUri, __loadingOptions);
1✔
528
      } catch (ValidationException e) {
×
529
        stdin = null; // won't be used but prevents compiler from complaining.
×
530
        final String __message = "the `stdin` field is not valid because:";
×
531
        __errors.add(new ValidationException(__message, e));
×
532
      }
1✔
533

534
    } else {
535
      stdin = null;
1✔
536
    }
537
    Object stderr;
538

539
    if (__doc.containsKey("stderr")) {
1✔
540
      try {
541
        stderr =
1✔
542
            LoaderInstances
543
                .union_of_NullInstance_or_StringInstance_or_ExpressionLoader
544
                .loadField(__doc.get("stderr"), __baseUri, __loadingOptions);
1✔
545
      } catch (ValidationException e) {
×
546
        stderr = null; // won't be used but prevents compiler from complaining.
×
547
        final String __message = "the `stderr` field is not valid because:";
×
548
        __errors.add(new ValidationException(__message, e));
×
549
      }
1✔
550

551
    } else {
552
      stderr = null;
1✔
553
    }
554
    Object stdout;
555

556
    if (__doc.containsKey("stdout")) {
1✔
557
      try {
558
        stdout =
1✔
559
            LoaderInstances
560
                .union_of_NullInstance_or_StringInstance_or_ExpressionLoader
561
                .loadField(__doc.get("stdout"), __baseUri, __loadingOptions);
1✔
562
      } catch (ValidationException e) {
×
563
        stdout = null; // won't be used but prevents compiler from complaining.
×
564
        final String __message = "the `stdout` field is not valid because:";
×
565
        __errors.add(new ValidationException(__message, e));
×
566
      }
1✔
567

568
    } else {
569
      stdout = null;
1✔
570
    }
571
    java.util.Optional<java.util.List<Object>> successCodes;
572

573
    if (__doc.containsKey("successCodes")) {
1✔
574
      try {
575
        successCodes =
1✔
576
            LoaderInstances
577
                .optional_array_of_IntegerInstance
578
                .loadField(__doc.get("successCodes"), __baseUri, __loadingOptions);
1✔
579
      } catch (ValidationException e) {
×
580
        successCodes = null; // won't be used but prevents compiler from complaining.
×
581
        final String __message = "the `successCodes` field is not valid because:";
×
582
        __errors.add(new ValidationException(__message, e));
×
583
      }
1✔
584

585
    } else {
586
      successCodes = null;
1✔
587
    }
588
    java.util.Optional<java.util.List<Object>> temporaryFailCodes;
589

590
    if (__doc.containsKey("temporaryFailCodes")) {
1✔
591
      try {
592
        temporaryFailCodes =
1✔
593
            LoaderInstances
594
                .optional_array_of_IntegerInstance
595
                .loadField(__doc.get("temporaryFailCodes"), __baseUri, __loadingOptions);
1✔
596
      } catch (ValidationException e) {
×
597
        temporaryFailCodes = null; // won't be used but prevents compiler from complaining.
×
598
        final String __message = "the `temporaryFailCodes` field is not valid because:";
×
599
        __errors.add(new ValidationException(__message, e));
×
600
      }
1✔
601

602
    } else {
603
      temporaryFailCodes = null;
1✔
604
    }
605
    java.util.Optional<java.util.List<Object>> permanentFailCodes;
606

607
    if (__doc.containsKey("permanentFailCodes")) {
1✔
608
      try {
609
        permanentFailCodes =
1✔
610
            LoaderInstances
611
                .optional_array_of_IntegerInstance
612
                .loadField(__doc.get("permanentFailCodes"), __baseUri, __loadingOptions);
1✔
613
      } catch (ValidationException e) {
×
614
        permanentFailCodes = null; // won't be used but prevents compiler from complaining.
×
615
        final String __message = "the `permanentFailCodes` field is not valid because:";
×
616
        __errors.add(new ValidationException(__message, e));
×
617
      }
1✔
618

619
    } else {
620
      permanentFailCodes = null;
1✔
621
    }
622
    if (!__errors.isEmpty()) {
1✔
623
      throw new ValidationException("Trying 'RecordField'", __errors);
1✔
624
    }
625
    this.id = (java.util.Optional<String>) id;
1✔
626
    this.label = (java.util.Optional<String>) label;
1✔
627
    this.doc = (Object) doc;
1✔
628
    this.inputs = (java.util.List<Object>) inputs;
1✔
629
    this.outputs = (java.util.List<Object>) outputs;
1✔
630
    this.requirements = (java.util.Optional<java.util.List<Object>>) requirements;
1✔
631
    this.hints = (java.util.Optional<java.util.List<Object>>) hints;
1✔
632
    this.cwlVersion = (java.util.Optional<CWLVersion>) cwlVersion;
1✔
633
    this.class_ = (CommandLineTool_class) class_;
1✔
634
    this.baseCommand = (Object) baseCommand;
1✔
635
    this.arguments = (java.util.Optional<java.util.List<Object>>) arguments;
1✔
636
    this.stdin = (Object) stdin;
1✔
637
    this.stderr = (Object) stderr;
1✔
638
    this.stdout = (Object) stdout;
1✔
639
    this.successCodes = (java.util.Optional<java.util.List<Object>>) successCodes;
1✔
640
    this.temporaryFailCodes = (java.util.Optional<java.util.List<Object>>) temporaryFailCodes;
1✔
641
    this.permanentFailCodes = (java.util.Optional<java.util.List<Object>>) permanentFailCodes;
1✔
642
  }
1✔
643
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc