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

common-workflow-language / cwljava / #360

16 Jun 2025 03:14AM CUT coverage: 60.167%. Remained the same
#360

push

github

kinow
Bump com.fasterxml.jackson.core:jackson-databind from 2.19.0 to 2.19.1

Bumps [com.fasterxml.jackson.core:jackson-databind](https://github.com/FasterXML/jackson) from 2.19.0 to 2.19.1.
- [Commits](https://github.com/FasterXML/jackson/commits)

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson.core:jackson-databind
  dependency-version: 2.19.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

7347 of 12211 relevant lines covered (60.17%)

0.6 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/CWLRecordFieldImpl.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#CWLRecordField</I><BR>
25
 */
26
public class CWLRecordFieldImpl extends SaveableImpl implements CWLRecordField {
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 String name;
32

33
  /**
34
   * Getter for property <I>https://w3id.org/cwl/salad#RecordField/name</I><BR>
35
   * <BLOCKQUOTE>
36
   * The name of the field
37
   *    * </BLOCKQUOTE>
38
   */
39

40
  public String getName() {
41
    return this.name;
×
42
  }
43

44
  private Object doc;
45

46
  /**
47
   * Getter for property <I>https://w3id.org/cwl/salad#Documented/doc</I><BR>
48
   * <BLOCKQUOTE>
49
   * A documentation string for this object, or an array of strings which should be concatenated.   * </BLOCKQUOTE>
50
   */
51

52
  public Object getDoc() {
53
    return this.doc;
×
54
  }
55

56
  private Object type;
57

58
  /**
59
   * Getter for property <I>https://w3id.org/cwl/salad#type</I><BR>
60
   * <BLOCKQUOTE>
61
   * The field type
62
   *    * </BLOCKQUOTE>
63
   */
64

65
  public Object getType() {
66
    return this.type;
×
67
  }
68

69
  /**
70
   * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of CWLRecordFieldImpl.
71
   *
72
   * @param __doc_            Document fragment to load this record object from (presumably a
73
                              {@link java.util.Map}).
74
   * @param __baseUri_        Base URI to generate child document IDs against.
75
   * @param __loadingOptions  Context for loading URIs and populating objects.
76
   * @param __docRoot_        ID at this position in the document (if available) (maybe?)
77
   * @throws ValidationException If the document fragment is not a {@link java.util.Map}
78
   *                             or validation of fields fails.
79
   */
80
  public CWLRecordFieldImpl(
81
      final Object __doc_,
82
      final String __baseUri_,
83
      LoadingOptions __loadingOptions,
84
      final String __docRoot_) {
85
    super(__doc_, __baseUri_, __loadingOptions, __docRoot_);
×
86
    // Prefix plumbing variables with '__' to reduce likelihood of collision with
87
    // generated names.
88
    String __baseUri = __baseUri_;
×
89
    String __docRoot = __docRoot_;
×
90
    if (!(__doc_ instanceof java.util.Map)) {
×
91
      throw new ValidationException("CWLRecordFieldImpl called on non-map");
×
92
    }
93
    final java.util.Map<String, Object> __doc = (java.util.Map<String, Object>) __doc_;
×
94
    final java.util.List<ValidationException> __errors =
×
95
        new java.util.ArrayList<ValidationException>();
96
    if (__loadingOptions != null) {
×
97
      this.loadingOptions_ = __loadingOptions;
×
98
    }
99
    String name;
100

101
    if (__doc.containsKey("name")) {
×
102
      try {
103
        name =
×
104
            LoaderInstances
105
                .uri_StringInstance_True_False_None_None
106
                .loadField(__doc.get("name"), __baseUri, __loadingOptions);
×
107
      } catch (ValidationException e) {
×
108
        name = null; // won't be used but prevents compiler from complaining.
×
109
        final String __message = "the `name` field is not valid because:";
×
110
        __errors.add(new ValidationException(__message, e));
×
111
      }
×
112

113
    } else {
114
      name = null;
×
115
    }
116

117
    if (name == null) {
×
118
      if (__docRoot != null) {
×
119
        name = __docRoot;
×
120
      } else {
121
        throw new ValidationException("Missing name");
×
122
      }
123
    }
124
    __baseUri = (String) name;
×
125
    Object doc;
126

127
    if (__doc.containsKey("doc")) {
×
128
      try {
129
        doc =
×
130
            LoaderInstances
131
                .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance
132
                .loadField(__doc.get("doc"), __baseUri, __loadingOptions);
×
133
      } catch (ValidationException e) {
×
134
        doc = null; // won't be used but prevents compiler from complaining.
×
135
        final String __message = "the `doc` field is not valid because:";
×
136
        __errors.add(new ValidationException(__message, e));
×
137
      }
×
138

139
    } else {
140
      doc = null;
×
141
    }
142
    Object type;
143
    try {
144
      type =
×
145
          LoaderInstances
146
              .typedsl_union_of_PrimitiveType_or_CWLRecordSchema_or_EnumSchema_or_CWLArraySchema_or_StringInstance_or_array_of_union_of_PrimitiveType_or_CWLRecordSchema_or_EnumSchema_or_CWLArraySchema_or_StringInstance_2
147
              .loadField(__doc.get("type"), __baseUri, __loadingOptions);
×
148
    } catch (ValidationException e) {
×
149
      type = null; // won't be used but prevents compiler from complaining.
×
150
      final String __message = "the `type` field is not valid because:";
×
151
      __errors.add(new ValidationException(__message, e));
×
152
    }
×
153
    if (!__errors.isEmpty()) {
×
154
      throw new ValidationException("Trying 'RecordField'", __errors);
×
155
    }
156
    this.doc = (Object) doc;
×
157
    this.name = (String) name;
×
158
    this.type = (Object) type;
×
159
  }
×
160
}
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