Skip to content

Commit 61ae32a

Browse files
committed
regen using latest CWL v1.2.1
common-workflow-language/cwl-v1.2@0d538a0
1 parent 98d3322 commit 61ae32a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+319
-224
lines changed

src/main/java/org/w3id/cwl/cwl1_1/utils/OneOrListOf.java

Lines changed: 0 additions & 48 deletions
This file was deleted.

src/main/java/org/w3id/cwl/cwl1_1/utils/OneOrListOfLoader.java

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/main/java/org/w3id/cwl/cwl1_2/ArraySchema.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ public interface ArraySchema extends Saveable {
3333
* Must be `array` * </BLOCKQUOTE>
3434
*/
3535

36-
enum_d062602be0b4b8fd33e69e29a841317b6ab665bc getType();
36+
Array_name getType();
3737
}

src/main/java/org/w3id/cwl/cwl1_2/ArraySchemaImpl.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ public Object getItems() {
4040
return this.items;
4141
}
4242

43-
private enum_d062602be0b4b8fd33e69e29a841317b6ab665bc type;
43+
private Array_name type;
4444

4545
/**
4646
* Getter for property <I>https://w3id.org/cwl/salad#type</I><BR>
4747
* <BLOCKQUOTE>
4848
* Must be `array` * </BLOCKQUOTE>
4949
*/
5050

51-
public enum_d062602be0b4b8fd33e69e29a841317b6ab665bc getType() {
51+
public Array_name getType() {
5252
return this.type;
5353
}
5454

@@ -86,18 +86,18 @@ public ArraySchemaImpl(
8686
try {
8787
items =
8888
LoaderInstances
89-
.typedsl_union_of_PrimitiveType_or_RecordSchema_or_EnumSchema_or_ArraySchema_or_StringInstance_or_array_of_union_of_PrimitiveType_or_RecordSchema_or_EnumSchema_or_ArraySchema_or_StringInstance_2
89+
.uri_union_of_PrimitiveType_or_RecordSchema_or_EnumSchema_or_ArraySchema_or_StringInstance_or_array_of_union_of_PrimitiveType_or_RecordSchema_or_EnumSchema_or_ArraySchema_or_StringInstance_False_True_2
9090
.loadField(__doc.get("items"), __baseUri, __loadingOptions);
9191
} catch (ValidationException e) {
9292
items = null; // won't be used but prevents compiler from complaining.
9393
final String __message = "the `items` field is not valid because:";
9494
__errors.add(new ValidationException(__message, e));
9595
}
96-
enum_d062602be0b4b8fd33e69e29a841317b6ab665bc type;
96+
Array_name type;
9797
try {
9898
type =
9999
LoaderInstances
100-
.typedsl_enum_d062602be0b4b8fd33e69e29a841317b6ab665bc_2
100+
.typedsl_Array_name_2
101101
.loadField(__doc.get("type"), __baseUri, __loadingOptions);
102102
} catch (ValidationException e) {
103103
type = null; // won't be used but prevents compiler from complaining.
@@ -108,6 +108,6 @@ public ArraySchemaImpl(
108108
throw new ValidationException("Trying 'RecordField'", __errors);
109109
}
110110
this.items = (Object) items;
111-
this.type = (enum_d062602be0b4b8fd33e69e29a841317b6ab665bc) type;
111+
this.type = (Array_name) type;
112112
}
113113
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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_2;
16+
17+
import org.w3id.cwl.cwl1_2.utils.ValidationException;
18+
19+
public enum Array_name {
20+
ARRAY("array");
21+
22+
private static String[] symbols = new String[] {"array"};
23+
private String docVal;
24+
25+
private Array_name(final String docVal) {
26+
this.docVal = docVal;
27+
}
28+
29+
public static Array_name fromDocumentVal(final String docVal) {
30+
for(final Array_name val : Array_name.values()) {
31+
if(val.docVal.equals(docVal)) {
32+
return val;
33+
}
34+
}
35+
throw new ValidationException(String.format("Expected one of %s", Array_name.symbols, docVal));
36+
}
37+
}

src/main/java/org/w3id/cwl/cwl1_2/CommandInputArraySchema.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public interface CommandInputArraySchema extends InputArraySchema, CommandInputS
4040
* Must be `array` * </BLOCKQUOTE>
4141
*/
4242

43-
enum_d062602be0b4b8fd33e69e29a841317b6ab665bc getType();
43+
Array_name getType();
4444
/**
4545
* Getter for property <I>https://w3id.org/cwl/cwl#Labeled/label</I><BR>
4646
* <BLOCKQUOTE>

src/main/java/org/w3id/cwl/cwl1_2/CommandInputArraySchemaImpl.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ public Object getItems() {
5252
return this.items;
5353
}
5454

55-
private enum_d062602be0b4b8fd33e69e29a841317b6ab665bc type;
55+
private Array_name type;
5656

5757
/**
5858
* Getter for property <I>https://w3id.org/cwl/salad#type</I><BR>
5959
* <BLOCKQUOTE>
6060
* Must be `array` * </BLOCKQUOTE>
6161
*/
6262

63-
public enum_d062602be0b4b8fd33e69e29a841317b6ab665bc getType() {
63+
public Array_name getType() {
6464
return this.type;
6565
}
6666

@@ -165,18 +165,18 @@ public CommandInputArraySchemaImpl(
165165
try {
166166
items =
167167
LoaderInstances
168-
.typedsl_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_2
168+
.uri_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_False_True_2
169169
.loadField(__doc.get("items"), __baseUri, __loadingOptions);
170170
} catch (ValidationException e) {
171171
items = null; // won't be used but prevents compiler from complaining.
172172
final String __message = "the `items` field is not valid because:";
173173
__errors.add(new ValidationException(__message, e));
174174
}
175-
enum_d062602be0b4b8fd33e69e29a841317b6ab665bc type;
175+
Array_name type;
176176
try {
177177
type =
178178
LoaderInstances
179-
.typedsl_enum_d062602be0b4b8fd33e69e29a841317b6ab665bc_2
179+
.typedsl_Array_name_2
180180
.loadField(__doc.get("type"), __baseUri, __loadingOptions);
181181
} catch (ValidationException e) {
182182
type = null; // won't be used but prevents compiler from complaining.
@@ -238,7 +238,7 @@ public CommandInputArraySchemaImpl(
238238
throw new ValidationException("Trying 'RecordField'", __errors);
239239
}
240240
this.items = (Object) items;
241-
this.type = (enum_d062602be0b4b8fd33e69e29a841317b6ab665bc) type;
241+
this.type = (Array_name) type;
242242
this.label = (java.util.Optional<String>) label;
243243
this.doc = (Object) doc;
244244
this.name = (java.util.Optional<String>) name;

src/main/java/org/w3id/cwl/cwl1_2/CommandInputEnumSchema.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public interface CommandInputEnumSchema extends InputEnumSchema, CommandInputSch
4040
* Must be `enum` * </BLOCKQUOTE>
4141
*/
4242

43-
enum_d961d79c225752b9fadb617367615ab176b47d77 getType();
43+
Enum_name getType();
4444
/**
4545
* Getter for property <I>https://w3id.org/cwl/cwl#Labeled/label</I><BR>
4646
* <BLOCKQUOTE>

src/main/java/org/w3id/cwl/cwl1_2/CommandInputEnumSchemaImpl.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ public java.util.List<String> getSymbols() {
5252
return this.symbols;
5353
}
5454

55-
private enum_d961d79c225752b9fadb617367615ab176b47d77 type;
55+
private Enum_name type;
5656

5757
/**
5858
* Getter for property <I>https://w3id.org/cwl/salad#type</I><BR>
5959
* <BLOCKQUOTE>
6060
* Must be `enum` * </BLOCKQUOTE>
6161
*/
6262

63-
public enum_d961d79c225752b9fadb617367615ab176b47d77 getType() {
63+
public Enum_name getType() {
6464
return this.type;
6565
}
6666

@@ -172,11 +172,11 @@ public CommandInputEnumSchemaImpl(
172172
final String __message = "the `symbols` field is not valid because:";
173173
__errors.add(new ValidationException(__message, e));
174174
}
175-
enum_d961d79c225752b9fadb617367615ab176b47d77 type;
175+
Enum_name type;
176176
try {
177177
type =
178178
LoaderInstances
179-
.typedsl_enum_d961d79c225752b9fadb617367615ab176b47d77_2
179+
.typedsl_Enum_name_2
180180
.loadField(__doc.get("type"), __baseUri, __loadingOptions);
181181
} catch (ValidationException e) {
182182
type = null; // won't be used but prevents compiler from complaining.
@@ -237,11 +237,11 @@ public CommandInputEnumSchemaImpl(
237237
if (!__errors.isEmpty()) {
238238
throw new ValidationException("Trying 'RecordField'", __errors);
239239
}
240+
this.name = (java.util.Optional<String>) name;
240241
this.symbols = (java.util.List<String>) symbols;
241-
this.type = (enum_d961d79c225752b9fadb617367615ab176b47d77) type;
242+
this.type = (Enum_name) type;
242243
this.label = (java.util.Optional<String>) label;
243244
this.doc = (Object) doc;
244-
this.name = (java.util.Optional<String>) name;
245245
this.inputBinding = (java.util.Optional<CommandLineBinding>) inputBinding;
246246
}
247247
}

src/main/java/org/w3id/cwl/cwl1_2/CommandInputRecordSchema.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public interface CommandInputRecordSchema extends InputRecordSchema, CommandInpu
4040
* Must be `record` * </BLOCKQUOTE>
4141
*/
4242

43-
enum_d9cba076fca539106791a4f46d198c7fcfbdb779 getType();
43+
Record_name getType();
4444
/**
4545
* Getter for property <I>https://w3id.org/cwl/cwl#Labeled/label</I><BR>
4646
* <BLOCKQUOTE>

0 commit comments

Comments
 (0)