Skip to content

Commit 0978523

Browse files
committed
regenerate using latest schema & schema-salad-tool
1 parent e28b918 commit 0978523

File tree

154 files changed

+2803
-521
lines changed

Some content is hidden

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

154 files changed

+2803
-521
lines changed

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

+1-1
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_1/ArraySchemaImpl.java

+6-6
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_MapSchema_or_UnionSchema_or_StringInstance_or_array_of_union_of_PrimitiveType_or_RecordSchema_or_EnumSchema_or_ArraySchema_or_MapSchema_or_UnionSchema_or_StringInstance_False_True_2_None
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
}
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@
1616

1717
import org.w3id.cwl.cwl1_1.utils.ValidationException;
1818

19-
public enum enum_d062602be0b4b8fd33e69e29a841317b6ab665bc {
19+
public enum Array_name {
2020
ARRAY("array");
2121

2222
private static String[] symbols = new String[] {"array"};
2323
private String docVal;
2424

25-
private enum_d062602be0b4b8fd33e69e29a841317b6ab665bc(final String docVal) {
25+
private Array_name(final String docVal) {
2626
this.docVal = docVal;
2727
}
2828

29-
public static enum_d062602be0b4b8fd33e69e29a841317b6ab665bc fromDocumentVal(final String docVal) {
30-
for(final enum_d062602be0b4b8fd33e69e29a841317b6ab665bc val : enum_d062602be0b4b8fd33e69e29a841317b6ab665bc.values()) {
29+
public static Array_name fromDocumentVal(final String docVal) {
30+
for(final Array_name val : Array_name.values()) {
3131
if(val.docVal.equals(docVal)) {
3232
return val;
3333
}
3434
}
35-
throw new ValidationException(String.format("Expected one of %s", enum_d062602be0b4b8fd33e69e29a841317b6ab665bc.symbols, docVal));
35+
throw new ValidationException(String.format("Expected one of %s", Array_name.symbols, docVal));
3636
}
3737
}
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_1;
16+
17+
import org.w3id.cwl.cwl1_1.utils.Saveable;
18+
19+
/**
20+
* Auto-generated interface for <I>https://w3id.org/cwl/cwl#CWLArraySchema</I><BR>This interface is implemented by {@link CWLArraySchemaImpl}<BR>
21+
*/
22+
public interface CWLArraySchema extends ArraySchema, Saveable {
23+
/**
24+
* Getter for property <I>https://w3id.org/cwl/salad#items</I><BR>
25+
* <BLOCKQUOTE>
26+
* Defines the type of the array elements. * </BLOCKQUOTE>
27+
*/
28+
29+
Object getItems();
30+
/**
31+
* Getter for property <I>https://w3id.org/cwl/salad#type</I><BR>
32+
* <BLOCKQUOTE>
33+
* Must be `array` * </BLOCKQUOTE>
34+
*/
35+
36+
Array_name getType();
37+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
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#CWLArraySchema</I><BR>
25+
*/
26+
public class CWLArraySchemaImpl extends SaveableImpl implements CWLArraySchema {
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 Object items;
32+
33+
/**
34+
* Getter for property <I>https://w3id.org/cwl/salad#items</I><BR>
35+
* <BLOCKQUOTE>
36+
* Defines the type of the array elements. * </BLOCKQUOTE>
37+
*/
38+
39+
public Object getItems() {
40+
return this.items;
41+
}
42+
43+
private Array_name type;
44+
45+
/**
46+
* Getter for property <I>https://w3id.org/cwl/salad#type</I><BR>
47+
* <BLOCKQUOTE>
48+
* Must be `array` * </BLOCKQUOTE>
49+
*/
50+
51+
public Array_name getType() {
52+
return this.type;
53+
}
54+
55+
/**
56+
* Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of CWLArraySchemaImpl.
57+
*
58+
* @param __doc_ Document fragment to load this record object from (presumably a
59+
{@link java.util.Map}).
60+
* @param __baseUri_ Base URI to generate child document IDs against.
61+
* @param __loadingOptions Context for loading URIs and populating objects.
62+
* @param __docRoot_ ID at this position in the document (if available) (maybe?)
63+
* @throws ValidationException If the document fragment is not a {@link java.util.Map}
64+
* or validation of fields fails.
65+
*/
66+
public CWLArraySchemaImpl(
67+
final Object __doc_,
68+
final String __baseUri_,
69+
LoadingOptions __loadingOptions,
70+
final String __docRoot_) {
71+
super(__doc_, __baseUri_, __loadingOptions, __docRoot_);
72+
// Prefix plumbing variables with '__' to reduce likelihood of collision with
73+
// generated names.
74+
String __baseUri = __baseUri_;
75+
String __docRoot = __docRoot_;
76+
if (!(__doc_ instanceof java.util.Map)) {
77+
throw new ValidationException("CWLArraySchemaImpl called on non-map");
78+
}
79+
final java.util.Map<String, Object> __doc = (java.util.Map<String, Object>) __doc_;
80+
final java.util.List<ValidationException> __errors =
81+
new java.util.ArrayList<ValidationException>();
82+
if (__loadingOptions != null) {
83+
this.loadingOptions_ = __loadingOptions;
84+
}
85+
Object items;
86+
try {
87+
items =
88+
LoaderInstances
89+
.uri_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_False_True_2_None
90+
.loadField(__doc.get("items"), __baseUri, __loadingOptions);
91+
} catch (ValidationException e) {
92+
items = null; // won't be used but prevents compiler from complaining.
93+
final String __message = "the `items` field is not valid because:";
94+
__errors.add(new ValidationException(__message, e));
95+
}
96+
Array_name type;
97+
try {
98+
type =
99+
LoaderInstances
100+
.typedsl_Array_name_2
101+
.loadField(__doc.get("type"), __baseUri, __loadingOptions);
102+
} catch (ValidationException e) {
103+
type = null; // won't be used but prevents compiler from complaining.
104+
final String __message = "the `type` field is not valid because:";
105+
__errors.add(new ValidationException(__message, e));
106+
}
107+
if (!__errors.isEmpty()) {
108+
throw new ValidationException("Trying 'RecordField'", __errors);
109+
}
110+
this.items = (Object) items;
111+
this.type = (Array_name) type;
112+
}
113+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.Saveable;
18+
19+
/**
20+
* Auto-generated interface for <I>https://w3id.org/cwl/cwl#CWLRecordField</I><BR>This interface is implemented by {@link CWLRecordFieldImpl}<BR>
21+
*/
22+
public interface CWLRecordField extends RecordField, Saveable {
23+
/**
24+
* Getter for property <I>https://w3id.org/cwl/salad#RecordField/name</I><BR>
25+
* <BLOCKQUOTE>
26+
* The name of the field
27+
* * </BLOCKQUOTE>
28+
*/
29+
30+
String getName();
31+
/**
32+
* Getter for property <I>https://w3id.org/cwl/salad#Documented/doc</I><BR>
33+
* <BLOCKQUOTE>
34+
* A documentation string for this object, or an array of strings which should be concatenated. * </BLOCKQUOTE>
35+
*/
36+
37+
Object getDoc();
38+
/**
39+
* Getter for property <I>https://w3id.org/cwl/salad#type</I><BR>
40+
* <BLOCKQUOTE>
41+
* The field type
42+
* * </BLOCKQUOTE>
43+
*/
44+
45+
Object getType();
46+
}

0 commit comments

Comments
 (0)