Skip to content

Commit ced772e

Browse files
committed
add CWL v1.2.0-dev3
1 parent 734f297 commit ced772e

File tree

190 files changed

+23840
-1
lines changed

Some content is hidden

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

190 files changed

+23840
-1
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ target/
22
.classpath
33
.project
44
.settings
5+
/bin/

Diff for: pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<packaging>jar</packaging>
88
<name>Common Workflow Language SDK</name>
99
<description><![CDATA[This project contains Java objects and utilities auto-generated by <a href="https://github.com/common-workflow-language/schema_salad">Schema Salad</a> for parsing documents corresponding to the https://w3id.org/cwl/cwl# schema.]]></description>
10-
<version>1.2.0.dev1-SNAPSHOT</version>
10+
<version>1.2.0.dev3-SNAPSHOT</version>
1111

1212
<properties>
1313
<commonslang.version>3.7</commonslang.version>

Diff for: src/main/java/org/w3id/cwl/cwl1_2_0_dev3/Any.java

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package org.w3id.cwl.cwl1_2_0_dev3;
2+
3+
import org.w3id.cwl.cwl1_2_0_dev3.utils.ValidationException;
4+
5+
public enum Any {
6+
ANY("Any");
7+
8+
private static String[] symbols = new String[] {"Any"};
9+
private String docVal;
10+
11+
private Any(final String docVal) {
12+
this.docVal = docVal;
13+
}
14+
15+
public static Any fromDocumentVal(final String docVal) {
16+
for (final Any val : Any.values()) {
17+
if (val.docVal.equals(docVal)) {
18+
return val;
19+
}
20+
}
21+
throw new ValidationException(String.format("Expected one of %s", Any.symbols, docVal));
22+
}
23+
}
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
package org.w3id.cwl.cwl1_2_0_dev3;
2+
3+
import org.w3id.cwl.cwl1_2_0_dev3.utils.Savable;
4+
5+
/**
6+
* Auto-generated interface for <I>https://w3id.org/cwl/salad#ArraySchema</I><br>
7+
* This interface is implemented by {@link ArraySchemaImpl}<br>
8+
*/
9+
public interface ArraySchema extends Savable {
10+
/**
11+
* Getter for property <I>https://w3id.org/cwl/salad#items</I><br>
12+
*
13+
* <BLOCKQUOTE>
14+
*
15+
* Defines the type of the array elements. *
16+
*
17+
* </BLOCKQUOTE>
18+
*/
19+
Object getItems();
20+
/**
21+
* Getter for property <I>https://w3id.org/cwl/salad#type</I><br>
22+
*
23+
* <BLOCKQUOTE>
24+
*
25+
* Must be `array` *
26+
*
27+
* </BLOCKQUOTE>
28+
*/
29+
enum_d062602be0b4b8fd33e69e29a841317b6ab665bc getType();
30+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
package org.w3id.cwl.cwl1_2_0_dev3;
2+
3+
import org.w3id.cwl.cwl1_2_0_dev3.utils.LoaderInstances;
4+
import org.w3id.cwl.cwl1_2_0_dev3.utils.LoadingOptions;
5+
import org.w3id.cwl.cwl1_2_0_dev3.utils.LoadingOptionsBuilder;
6+
import org.w3id.cwl.cwl1_2_0_dev3.utils.SavableImpl;
7+
import org.w3id.cwl.cwl1_2_0_dev3.utils.ValidationException;
8+
9+
/** Auto-generated class implementation for <I>https://w3id.org/cwl/salad#ArraySchema</I><br> */
10+
public class ArraySchemaImpl extends SavableImpl implements ArraySchema {
11+
private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build();
12+
private java.util.Map<String, Object> extensionFields_ = new java.util.HashMap<String, Object>();
13+
14+
private Object items;
15+
16+
/**
17+
* Getter for property <I>https://w3id.org/cwl/salad#items</I><br>
18+
*
19+
* <BLOCKQUOTE>
20+
*
21+
* Defines the type of the array elements. *
22+
*
23+
* </BLOCKQUOTE>
24+
*/
25+
public Object getItems() {
26+
return this.items;
27+
}
28+
29+
private enum_d062602be0b4b8fd33e69e29a841317b6ab665bc type;
30+
31+
/**
32+
* Getter for property <I>https://w3id.org/cwl/salad#type</I><br>
33+
*
34+
* <BLOCKQUOTE>
35+
*
36+
* Must be `array` *
37+
*
38+
* </BLOCKQUOTE>
39+
*/
40+
public enum_d062602be0b4b8fd33e69e29a841317b6ab665bc getType() {
41+
return this.type;
42+
}
43+
44+
/**
45+
* Used by {@link org.w3id.cwl.cwl1_2_0_dev3.utils.RootLoader} to construct instances of
46+
* ArraySchemaImpl.
47+
*
48+
* @param __doc_ Document fragment to load this record object from (presumably a {@link
49+
* java.util.Map}).
50+
* @param __baseUri_ Base URI to generate child document IDs against.
51+
* @param __loadingOptions Context for loading URIs and populating objects.
52+
* @param __docRoot_ ID at this position in the document (if available) (maybe?)
53+
* @throws ValidationException If the document fragment is not a {@link java.util.Map} or
54+
* validation of fields fails.
55+
*/
56+
public ArraySchemaImpl(
57+
final Object __doc_,
58+
final String __baseUri_,
59+
LoadingOptions __loadingOptions,
60+
final String __docRoot_) {
61+
super(__doc_, __baseUri_, __loadingOptions, __docRoot_);
62+
// Prefix plumbing variables with '__' to reduce likelihood of collision with
63+
// generated names.
64+
String __baseUri = __baseUri_;
65+
String __docRoot = __docRoot_;
66+
if (!(__doc_ instanceof java.util.Map)) {
67+
throw new ValidationException("ArraySchemaImpl called on non-map");
68+
}
69+
final java.util.Map<String, Object> __doc = (java.util.Map<String, Object>) __doc_;
70+
final java.util.List<ValidationException> __errors =
71+
new java.util.ArrayList<ValidationException>();
72+
if (__loadingOptions != null) {
73+
this.loadingOptions_ = __loadingOptions;
74+
}
75+
Object items;
76+
try {
77+
items =
78+
LoaderInstances
79+
.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
80+
.loadField(__doc.get("items"), __baseUri, __loadingOptions);
81+
} catch (ValidationException e) {
82+
items = null; // won't be used but prevents compiler from complaining.
83+
final String __message = "the `items` field is not valid because:";
84+
__errors.add(new ValidationException(__message, e));
85+
}
86+
enum_d062602be0b4b8fd33e69e29a841317b6ab665bc type;
87+
try {
88+
type =
89+
LoaderInstances.typedsl_enum_d062602be0b4b8fd33e69e29a841317b6ab665bc_2.loadField(
90+
__doc.get("type"), __baseUri, __loadingOptions);
91+
} catch (ValidationException e) {
92+
type = null; // won't be used but prevents compiler from complaining.
93+
final String __message = "the `type` field is not valid because:";
94+
__errors.add(new ValidationException(__message, e));
95+
}
96+
if (!__errors.isEmpty()) {
97+
throw new ValidationException("Trying 'RecordField'", __errors);
98+
}
99+
this.items = (Object) items;
100+
this.type = (enum_d062602be0b4b8fd33e69e29a841317b6ab665bc) type;
101+
}
102+
}
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package org.w3id.cwl.cwl1_2_0_dev3;
2+
3+
import org.w3id.cwl.cwl1_2_0_dev3.utils.ValidationException;
4+
5+
public enum CWLType {
6+
FILE("File"),
7+
DIRECTORY("Directory");
8+
9+
private static String[] symbols = new String[] {"File", "Directory"};
10+
private String docVal;
11+
12+
private CWLType(final String docVal) {
13+
this.docVal = docVal;
14+
}
15+
16+
public static CWLType fromDocumentVal(final String docVal) {
17+
for (final CWLType val : CWLType.values()) {
18+
if (val.docVal.equals(docVal)) {
19+
return val;
20+
}
21+
}
22+
throw new ValidationException(String.format("Expected one of %s", CWLType.symbols, docVal));
23+
}
24+
}
+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
package org.w3id.cwl.cwl1_2_0_dev3;
2+
3+
import org.w3id.cwl.cwl1_2_0_dev3.utils.ValidationException;
4+
5+
public enum CWLVersion {
6+
DRAFT_2("draft-2"),
7+
DRAFT_3_DEV1("draft-3.dev1"),
8+
DRAFT_3_DEV2("draft-3.dev2"),
9+
DRAFT_3_DEV3("draft-3.dev3"),
10+
DRAFT_3_DEV4("draft-3.dev4"),
11+
DRAFT_3_DEV5("draft-3.dev5"),
12+
DRAFT_3("draft-3"),
13+
DRAFT_4_DEV1("draft-4.dev1"),
14+
DRAFT_4_DEV2("draft-4.dev2"),
15+
DRAFT_4_DEV3("draft-4.dev3"),
16+
V1_0_DEV4("v1.0.dev4"),
17+
V1_0("v1.0"),
18+
V1_1_0_DEV1("v1.1.0-dev1"),
19+
V1_1("v1.1"),
20+
V1_2_0_DEV1("v1.2.0-dev1"),
21+
V1_2_0_DEV2("v1.2.0-dev2"),
22+
V1_2_0_DEV3("v1.2.0-dev3");
23+
24+
private static String[] symbols =
25+
new String[] {
26+
"draft-2",
27+
"draft-3.dev1",
28+
"draft-3.dev2",
29+
"draft-3.dev3",
30+
"draft-3.dev4",
31+
"draft-3.dev5",
32+
"draft-3",
33+
"draft-4.dev1",
34+
"draft-4.dev2",
35+
"draft-4.dev3",
36+
"v1.0.dev4",
37+
"v1.0",
38+
"v1.1.0-dev1",
39+
"v1.1",
40+
"v1.2.0-dev1",
41+
"v1.2.0-dev2",
42+
"v1.2.0-dev3"
43+
};
44+
private String docVal;
45+
46+
private CWLVersion(final String docVal) {
47+
this.docVal = docVal;
48+
}
49+
50+
public static CWLVersion fromDocumentVal(final String docVal) {
51+
for (final CWLVersion val : CWLVersion.values()) {
52+
if (val.docVal.equals(docVal)) {
53+
return val;
54+
}
55+
}
56+
throw new ValidationException(String.format("Expected one of %s", CWLVersion.symbols, docVal));
57+
}
58+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
package org.w3id.cwl.cwl1_2_0_dev3;
2+
3+
import org.w3id.cwl.cwl1_2_0_dev3.utils.Savable;
4+
5+
/**
6+
* Auto-generated interface for <I>https://w3id.org/cwl/cwl#CommandInputArraySchema</I><br>
7+
* This interface is implemented by {@link CommandInputArraySchemaImpl}<br>
8+
*/
9+
public interface CommandInputArraySchema
10+
extends InputArraySchema, CommandInputSchema, CommandLineBindable, Savable {
11+
/**
12+
* Getter for property <I>https://w3id.org/cwl/cwl#IOSchema/name</I><br>
13+
*
14+
* <BLOCKQUOTE>
15+
*
16+
* The identifier for this type *
17+
*
18+
* </BLOCKQUOTE>
19+
*/
20+
java.util.Optional<String> getName();
21+
/**
22+
* Getter for property <I>https://w3id.org/cwl/salad#items</I><br>
23+
*
24+
* <BLOCKQUOTE>
25+
*
26+
* Defines the type of the array elements. *
27+
*
28+
* </BLOCKQUOTE>
29+
*/
30+
Object getItems();
31+
/**
32+
* Getter for property <I>https://w3id.org/cwl/salad#type</I><br>
33+
*
34+
* <BLOCKQUOTE>
35+
*
36+
* Must be `array` *
37+
*
38+
* </BLOCKQUOTE>
39+
*/
40+
enum_d062602be0b4b8fd33e69e29a841317b6ab665bc getType();
41+
/**
42+
* Getter for property <I>https://w3id.org/cwl/cwl#Labeled/label</I><br>
43+
*
44+
* <BLOCKQUOTE>
45+
*
46+
* A short, human-readable label of this object. *
47+
*
48+
* </BLOCKQUOTE>
49+
*/
50+
java.util.Optional<String> getLabel();
51+
/**
52+
* Getter for property <I>https://w3id.org/cwl/salad#Documented/doc</I><br>
53+
*
54+
* <BLOCKQUOTE>
55+
*
56+
* A documentation string for this object, or an array of strings which should be concatenated. *
57+
*
58+
* </BLOCKQUOTE>
59+
*/
60+
Object getDoc();
61+
/**
62+
* Getter for property <I>https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding</I><br>
63+
*
64+
* <BLOCKQUOTE>
65+
*
66+
* Describes how to turn this object into command line arguments. *
67+
*
68+
* </BLOCKQUOTE>
69+
*/
70+
java.util.Optional<CommandLineBinding> getInputBinding();
71+
}

0 commit comments

Comments
 (0)