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

common-workflow-language / cwljava / #332

09 Dec 2024 02:59AM CUT coverage: 62.203%. Remained the same
#332

Pull #190

github

web-flow
Merge dd2a2c071 into 11fff259d
Pull Request #190: Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.11.1 to 3.11.2

7182 of 11546 relevant lines covered (62.2%)

0.62 hits per line

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

0.0
/src/main/java/org/w3id/cwl/cwl1_1/CommandLineBindableImpl.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#CommandLineBindable</I><BR>
25
 */
26
public class CommandLineBindableImpl extends SaveableImpl implements CommandLineBindable {
27
  private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build();
×
28
  private java.util.Map<String, Object> extensionFields_ =
×
29
      new java.util.HashMap<String, Object>();
30

31
  private java.util.Optional<CommandLineBinding> inputBinding;
32

33
  /**
34
   * Getter for property <I>https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding</I><BR>
35
   * <BLOCKQUOTE>
36
   * Describes how to turn this object into command line arguments.   * </BLOCKQUOTE>
37
   */
38

39
  public java.util.Optional<CommandLineBinding> getInputBinding() {
40
    return this.inputBinding;
×
41
  }
42

43
  /**
44
   * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of CommandLineBindableImpl.
45
   *
46
   * @param __doc_            Document fragment to load this record object from (presumably a
47
                              {@link java.util.Map}).
48
   * @param __baseUri_        Base URI to generate child document IDs against.
49
   * @param __loadingOptions  Context for loading URIs and populating objects.
50
   * @param __docRoot_        ID at this position in the document (if available) (maybe?)
51
   * @throws ValidationException If the document fragment is not a {@link java.util.Map}
52
   *                             or validation of fields fails.
53
   */
54
  public CommandLineBindableImpl(
55
      final Object __doc_,
56
      final String __baseUri_,
57
      LoadingOptions __loadingOptions,
58
      final String __docRoot_) {
59
    super(__doc_, __baseUri_, __loadingOptions, __docRoot_);
×
60
    // Prefix plumbing variables with '__' to reduce likelihood of collision with
61
    // generated names.
62
    String __baseUri = __baseUri_;
×
63
    String __docRoot = __docRoot_;
×
64
    if (!(__doc_ instanceof java.util.Map)) {
×
65
      throw new ValidationException("CommandLineBindableImpl called on non-map");
×
66
    }
67
    final java.util.Map<String, Object> __doc = (java.util.Map<String, Object>) __doc_;
×
68
    final java.util.List<ValidationException> __errors =
×
69
        new java.util.ArrayList<ValidationException>();
70
    if (__loadingOptions != null) {
×
71
      this.loadingOptions_ = __loadingOptions;
×
72
    }
73
    java.util.Optional<CommandLineBinding> inputBinding;
74

75
    if (__doc.containsKey("inputBinding")) {
×
76
      try {
77
        inputBinding =
×
78
            LoaderInstances
79
                .optional_CommandLineBinding
80
                .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions);
×
81
      } catch (ValidationException e) {
×
82
        inputBinding = null; // won't be used but prevents compiler from complaining.
×
83
        final String __message = "the `inputBinding` field is not valid because:";
×
84
        __errors.add(new ValidationException(__message, e));
×
85
      }
×
86

87
    } else {
88
      inputBinding = null;
×
89
    }
90
    if (!__errors.isEmpty()) {
×
91
      throw new ValidationException("Trying 'RecordField'", __errors);
×
92
    }
93
    this.inputBinding = (java.util.Optional<CommandLineBinding>) inputBinding;
×
94
  }
×
95
}
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