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

common-workflow-language / cwljava / #352

07 Apr 2025 10:22AM UTC coverage: 59.538% (-0.6%) from 60.167%
#352

Pull #193

github

web-flow
Merge d636f9333 into 46536cad2
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

87.88
/src/main/java/org/w3id/cwl/cwl1_1/InitialWorkDirRequirementImpl.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#InitialWorkDirRequirement</I><BR> <BLOCKQUOTE>
25
 Define a list of files and subdirectories that must be created by the workflow platform in the designated output directory prior to executing the command line tool. </BLOCKQUOTE>
26
 */
27
public class InitialWorkDirRequirementImpl extends SaveableImpl implements InitialWorkDirRequirement {
28
  private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build();
1✔
29
  private java.util.Map<String, Object> extensionFields_ =
1✔
30
      new java.util.HashMap<String, Object>();
31
  public java.util.Map<String, Object> getExtensionFields() {
NEW
32
    return this.extensionFields_;
×
33
  }
34

35
  private InitialWorkDirRequirement_class class_;
36

37
  /**
38
   * Getter for property <I>https://w3id.org/cwl/cwl#InitialWorkDirRequirement/class</I><BR>
39
   * <BLOCKQUOTE>
40
   * InitialWorkDirRequirement   * </BLOCKQUOTE>
41
   */
42

43
  public InitialWorkDirRequirement_class getClass_() {
44
    return this.class_;
×
45
  }
46

47
  private Object listing;
48

49
  /**
50
   * Getter for property <I>https://w3id.org/cwl/cwl#listing</I><BR>
51
   * <BLOCKQUOTE>
52
   * The list of files or subdirectories that must be placed in the
53
   * designated output directory prior to executing the command line tool.
54
   * 
55
   * May be an expression. If so, the expression return value must validate as
56
   * `{type: array, items: ["null", File, File[], Directory, Directory[], Dirent]}`.
57
   * 
58
   * Files or Directories which are listed in the input parameters and
59
   * appear in the `InitialWorkDirRequirement` listing must have their
60
   * `path` set to their staged location in the designated output directory.
61
   * If the same File or Directory appears more than once in the
62
   * `InitialWorkDirRequirement` listing, the implementation must choose
63
   * exactly one value for `path`; how this value is chosen is undefined.
64
   *    * </BLOCKQUOTE>
65
   */
66

67
  public Object getListing() {
68
    return this.listing;
×
69
  }
70

71
  /**
72
   * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of InitialWorkDirRequirementImpl.
73
   *
74
   * @param __doc_            Document fragment to load this record object from (presumably a
75
                              {@link java.util.Map}).
76
   * @param __baseUri_        Base URI to generate child document IDs against.
77
   * @param __loadingOptions  Context for loading URIs and populating objects.
78
   * @param __docRoot_        ID at this position in the document (if available) (maybe?)
79
   * @throws ValidationException If the document fragment is not a {@link java.util.Map}
80
   *                             or validation of fields fails.
81
   */
82
  public InitialWorkDirRequirementImpl(
83
      final Object __doc_,
84
      final String __baseUri_,
85
      LoadingOptions __loadingOptions,
86
      final String __docRoot_) {
87
    super(__doc_, __baseUri_, __loadingOptions, __docRoot_);
1✔
88
    // Prefix plumbing variables with '__' to reduce likelihood of collision with
89
    // generated names.
90
    String __baseUri = __baseUri_;
1✔
91
    String __docRoot = __docRoot_;
1✔
92
    if (!(__doc_ instanceof java.util.Map)) {
1✔
93
      throw new ValidationException("InitialWorkDirRequirementImpl called on non-map");
×
94
    }
95
    final java.util.Map<String, Object> __doc = (java.util.Map<String, Object>) __doc_;
1✔
96
    final java.util.List<ValidationException> __errors =
1✔
97
        new java.util.ArrayList<ValidationException>();
98
    if (__loadingOptions != null) {
1✔
99
      this.loadingOptions_ = __loadingOptions;
1✔
100
    }
101
    InitialWorkDirRequirement_class class_;
102
    try {
103
      class_ =
1✔
104
          LoaderInstances
105
              .uri_InitialWorkDirRequirement_class_False_True_None_None
106
              .loadField(__doc.get("class"), __baseUri, __loadingOptions);
1✔
107
    } catch (ValidationException e) {
1✔
108
      class_ = null; // won't be used but prevents compiler from complaining.
1✔
109
      final String __message = "the `class` field is not valid because:";
1✔
110
      __errors.add(new ValidationException(__message, e));
1✔
111
    }
1✔
112
    Object listing;
113
    try {
114
      listing =
1✔
115
          LoaderInstances
116
              .union_of_array_of_union_of_NullInstance_or_File_or_array_of_union_of_File_or_Directory_or_Directory_or_Dirent_or_ExpressionLoader_or_ExpressionLoader
117
              .loadField(__doc.get("listing"), __baseUri, __loadingOptions);
1✔
118
    } catch (ValidationException e) {
1✔
119
      listing = null; // won't be used but prevents compiler from complaining.
1✔
120
      final String __message = "the `listing` field is not valid because:";
1✔
121
      __errors.add(new ValidationException(__message, e));
1✔
122
    }
1✔
123
    if (!__errors.isEmpty()) {
1✔
124
      throw new ValidationException("Trying 'RecordField'", __errors);
1✔
125
    }
126
    this.class_ = (InitialWorkDirRequirement_class) class_;
1✔
127
    this.listing = (Object) listing;
1✔
128
  }
1✔
129
}
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