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

common-workflow-language / cwljava / #423

17 Dec 2025 10:33AM UTC coverage: 56.982% (-1.0%) from 57.972%
#423

push

github

web-flow
refresh 2025-12 (including extensions) (#218)

* "id" is a required field in for Parameters and WorkflowSteps
* regen; drop CommandLineBindableImpl; add optional CWL extensions

185 of 577 new or added lines in 21 files covered. (32.06%)

10 existing lines in 10 files now uncovered.

7892 of 13850 relevant lines covered (56.98%)

0.57 hits per line

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

51.22
/src/main/java/org/commonwl/cwlsdk/cwl1_2/ShmSizeImpl.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.commonwl.cwlsdk.cwl1_2;
16

17
import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances;
18
import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions;
19
import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder;
20
import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl;
21
import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException;
22

23
/**
24
* Auto-generated class implementation for <I>http://commonwl.org/cwltool#ShmSize</I><BR>
25
 */
26
public class ShmSizeImpl extends SaveableImpl implements ShmSize {
27
  private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build();
1✔
28
  private java.util.Map<String, Object> extensionFields_ =
1✔
29
      new java.util.HashMap<String, Object>();
30
  public LoadingOptions getLoadingOptions() {
NEW
31
    return this.loadingOptions_;
×
32
  }
33
  public java.util.Map<String, Object> getExtensionFields() {
NEW
34
    return this.extensionFields_;
×
35
  }
36

37
  private String class_;
38

39
  /**
40
   * Getter for property <I>http://commonwl.org/cwltool#ShmSize/class</I><BR>
41
   * <BLOCKQUOTE>
42
   * cwltool:ShmSize   * </BLOCKQUOTE>
43
   */
44

45
  public String getClass_() {
NEW
46
    return this.class_;
×
47
  }
48

49
  private String shmSize;
50

51
  /**
52
   * Getter for property <I>http://commonwl.org/cwltool#ShmSize/shmSize</I><BR>
53
   * <BLOCKQUOTE>
54
   * Size of /dev/shm. The format is `&lt;number&gt;&lt;unit&gt;`. &lt;number&gt; must be greater
55
   * than 0. Unit is optional and can be `b` (bytes), `k` (kilobytes), `m`
56
   * (megabytes), or `g` (gigabytes). If you omit the unit, the default is
57
   * bytes. If you omit the size entirely, the value is `64m`.&quot;
58
   *    * </BLOCKQUOTE>
59
   */
60

61
  public String getShmSize() {
NEW
62
    return this.shmSize;
×
63
  }
64

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

© 2025 Coveralls, Inc